/* Hopstec Guardian — agent workspace shell */

.ws-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #070d18;
  color: var(--text-primary);
}

.ws-topbar {
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: #0a1424;
  border-bottom: 1px solid var(--c-border);
}

.ws-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 224px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.ws-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(99, 102, 241, 0.14));
  border: 1px solid rgba(45, 212, 191, 0.3);
  overflow: hidden;
  padding: 0;
}

.guardian-logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.72);
}

.ws-brand-title {
  font-weight: 800;
  color: #fff;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  line-height: 1.15;
}

.ws-brand-sub {
  color: var(--c-muted);
  font-size: 11px;
}

.ws-command-wrap {
  flex: 1;
  max-width: 560px;
  position: relative;
}

.ws-command-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-muted);
  pointer-events: none;
}

.ws-command-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 9px 60px 9px 38px;
  color: #e2e8f0;
  font-size: 13px;
  outline: none;
  min-height: 40px;
}
.ws-command-input:focus {
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: var(--focus-ring);
}

.ws-command-kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--c-muted);
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  padding: 1px 6px;
}

.ws-online-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.15);
  color: var(--accent);
}

.ws-user-chip {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(45, 212, 191, 0.28);
  text-decoration: none;
}

.ws-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* Left rail */
.ws-rail {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #0b1526;
  border-right: 1px solid var(--c-border);
  overflow-y: auto;
}

.ws-rail-section {
  padding: 16px 12px 6px;
}

.ws-rail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 0 8px;
  margin-bottom: 8px;
}

.ws-agent-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: background var(--motion-fast), border-color var(--motion-fast);
}
.ws-agent-card:hover {
  background: rgba(255, 255, 255, 0.05);
}
.ws-agent-card.is-active {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

.ws-agent-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.ws-agent-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 0 18px var(--agent-glow, rgba(45, 212, 191, 0.22));
}
.ws-agent-ring--teal {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.55), rgba(255, 255, 255, 0.06));
  --agent-glow: rgba(45, 212, 191, 0.22);
}
.ws-agent-ring--indigo {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.55), rgba(255, 255, 255, 0.06));
  --agent-glow: rgba(99, 102, 241, 0.25);
}
.ws-agent-ring--violet {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.55), rgba(255, 255, 255, 0.06));
  --agent-glow: rgba(139, 92, 246, 0.22);
}
.ws-agent-ring--amber {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.55), rgba(255, 255, 255, 0.06));
  --agent-glow: rgba(251, 191, 36, 0.22);
}

.ws-agent-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.04);
}

.ws-agent-initial {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
}

.ws-agent-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #0b1526;
}
.ws-agent-dot--working { background: #f59e0b; }
.ws-agent-dot--idle { background: #64748b; }
.ws-agent-dot--live { background: #2dd4bf; }

.ws-agent-meta { min-width: 0; flex: 1; }
.ws-agent-name { font-size: 13.5px; font-weight: 700; color: #f1f5f9; }
.ws-agent-status {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-agent-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.ws-hire-btn {
  margin: 8px 8px 0;
  padding: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  background: transparent;
  width: calc(100% - 16px);
}
.ws-hire-btn:hover {
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.2);
}

.ws-nav { padding: 10px 12px; flex: 1; }

.ws-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.ws-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}
.ws-nav-item.is-active {
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent);
  font-weight: 600;
}

.ws-nav-badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.ws-rail-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
  color: var(--c-muted);
}

.ws-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    radial-gradient(900px 480px at 72% -8%, rgba(45, 212, 191, 0.055), transparent 62%),
    radial-gradient(760px 420px at 12% 108%, rgba(99, 102, 241, 0.07), transparent 62%),
    #070d18;
}

.ws-main--scroll {
  overflow-y: auto;
}

.ws-cases-content {
  padding: 24px;
  min-height: 100%;
}

.ws-agent-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ws-agent-header-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ws-agent-header-title {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  color: #fff;
  margin: 0;
}

.ws-agent-header-role { font-size: 12px; color: #64748b; }

.ws-agent-header-mission {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 1px;
}

.ws-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.ws-header-btn {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.ws-header-btn:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.07);
}

.ws-thread {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ws-thread-day {
  align-self: center;
  font-size: 11px;
  color: var(--c-muted);
  font-family: 'JetBrains Mono', monospace;
}

.ws-msg-row {
  display: flex;
  gap: 10px;
  max-width: 78%;
}

.ws-bubble {
  font-size: 13.5px;
  line-height: 1.55;
  padding: 12px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.ws-bubble--agent {
  background: rgba(17, 30, 49, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px 18px 18px 18px;
  color: #dbe4f0;
}

.ws-bubble--user {
  align-self: flex-end;
  max-width: 70%;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 18px 4px 18px 18px;
  color: #e0e4ff;
}

.ws-action-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(45, 212, 191, 0.05);
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background var(--motion-fast);
}
.ws-action-card:hover { background: rgba(45, 212, 191, 0.09); }

.ws-action-title { font-size: 12.5px; font-weight: 700; color: #5eead4; }
.ws-action-sub { font-size: 11.5px; color: #64748b; }
.ws-action-link { font-size: 11.5px; color: var(--accent); font-weight: 600; margin-left: auto; }

.ws-typing {
  display: flex;
  gap: 4px;
  background: rgba(17, 30, 49, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px 16px 16px 16px;
  padding: 14px 16px;
}
.ws-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  animation: ws-typing 1.2s ease-in-out infinite;
}
.ws-typing span:nth-child(2) { animation-delay: 0.2s; }
.ws-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ws-typing {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

.ws-composer {
  flex-shrink: 0;
  padding: 14px 24px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ws-suggestions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ws-suggestion {
  font-size: 12px;
  color: #93a6c4;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.ws-suggestion:hover {
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.3);
  background: rgba(45, 212, 191, 0.06);
}

.ws-composer-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ws-composer-input {
  flex: 1;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  color: #e2e8f0;
  font-size: 13.5px;
  outline: none;
  min-height: 44px;
}
.ws-composer-input:focus { border-color: rgba(45, 212, 191, 0.4); }

.ws-send-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  color: #07111e;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(45, 212, 191, 0.35);
}
.ws-send-btn:hover { opacity: 0.9; }

.ws-composer-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ws-icon-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #93a6c4;
  cursor: pointer;
}
.ws-icon-btn:hover {
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.28);
}
.ws-icon-btn.is-active {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
}

.ws-attach-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.ws-attach-chip {
  font-size: 11px;
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ws-human-flag {
  border-left: 3px solid #f59e0b;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  font-size: 12px;
  color: #fde68a;
}

.ws-spin-up-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.ws-spin-up-btn:hover {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
}

/* Right activity rail */
.ws-activity {
  width: 304px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 16px;
  background: #0b1526;
  border-left: 1px solid var(--c-border);
  overflow-y: auto;
}

.ws-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ws-panel-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ws-panel-label--alert { color: #f87171; }
.ws-panel-label--muted { color: var(--c-muted); }

.ws-count-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.ws-needs-card {
  border-radius: 14px;
  padding: 13px 14px;
}
.ws-needs-card--critical {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.ws-needs-card--warning {
  background: rgba(249, 115, 22, 0.05);
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.ws-needs-title { font-size: 12.5px; font-weight: 700; color: #f1f5f9; margin-bottom: 3px; }
.ws-needs-body { font-size: 11.5px; color: #8296b3; line-height: 1.5; }

.ws-needs-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.ws-btn-primary {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 0;
  border-radius: 8px;
  background: var(--accent);
  color: #07111e;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.ws-btn-primary:hover { opacity: 0.88; }

.ws-btn-ghost {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.ws-btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

.ws-activity-item {
  display: flex;
  gap: 10px;
  padding: 7px 0;
}

.ws-activity-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.ws-activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 5px;
}

.ws-activity-line {
  flex: 1;
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin-top: 4px;
}

.ws-activity-text { font-size: 12.5px; color: #c7d2e4; line-height: 1.45; }
.ws-activity-when {
  font-size: 11px;
  color: var(--c-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

.ws-open-cases {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px;
}

.ws-case-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-decoration: none;
  color: inherit;
  padding: 2px 0;
}
.ws-case-row:hover .ws-case-title { color: #fff; }

.ws-risk-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  flex-shrink: 0;
}
.ws-risk-dot--critical { background: #ef4444; }
.ws-risk-dot--high { background: #f97316; }
.ws-risk-dot--medium { background: #eab308; }
.ws-risk-dot--low { background: #22c55e; }

.ws-case-title {
  color: #c7d2e4;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-case-id {
  color: var(--c-muted);
  font-family: 'JetBrains Mono', monospace;
}

.ws-view-all {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

/* Pulse dot shared */
.pdot-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pdot-pulse 2s ease-in-out infinite;
}
@keyframes pdot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.72); }
}

/* Responsive */
@media (max-width: 1100px) {
  .ws-activity { display: none; }
}

/* Mobile workspace shell */
.ws-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  cursor: pointer;
}

.ws-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: 56px;
  background: rgba(4, 9, 18, 0.65);
  backdrop-filter: blur(3px);
  z-index: 180;
}

.ws-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  height: 62px;
  padding: 0 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 20, 36, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  align-items: stretch;
  justify-content: space-around;
  gap: 2px;
}

.ws-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 6px 4px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  border-radius: 10px;
  font-family: inherit;
}
.ws-bottom-nav-item.is-active {
  color: #5eead4;
  background: rgba(45, 212, 191, 0.08);
}
.ws-bottom-nav-item svg { flex-shrink: 0; }

.ws-bottom-nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes ws-agent-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 18px var(--agent-glow, rgba(45, 212, 191, 0.22)); }
  50% { transform: scale(1.03); box-shadow: 0 0 28px var(--agent-glow, rgba(45, 212, 191, 0.35)); }
}

.ws-agent-ring {
  animation: ws-agent-breathe 4s ease-in-out infinite;
}
.ws-agent-card:nth-child(2) .ws-agent-ring { animation-delay: 0.5s; }
.ws-agent-card:nth-child(3) .ws-agent-ring { animation-delay: 1s; }
.ws-agent-card:nth-child(4) .ws-agent-ring { animation-delay: 1.5s; }
.ws-agent-card:nth-child(5) .ws-agent-ring { animation-delay: 2s; }

@media (max-width: 768px) {
  .ws-shell {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }

  .ws-menu-btn { display: inline-flex; }
  .ws-bottom-nav { display: flex; }

  .ws-topbar {
    gap: 10px;
    padding: 0 12px;
  }

  .ws-brand {
    width: auto;
    min-width: 0;
    flex: 1;
  }
  .ws-brand-sub { display: none; }

  .ws-command-wrap {
    display: none;
  }

  .ws-online-pill { display: none; }

  .ws-rail {
    display: flex;
    position: fixed;
    left: 0;
    top: 56px;
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    width: min(280px, 88vw);
    z-index: 200;
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.45);
  }

  .ws-shell.is-nav-open .ws-rail {
    transform: translateX(0);
  }

  .ws-shell.is-nav-open .ws-nav-backdrop {
    display: block;
  }

  .ws-main {
    min-width: 0;
    width: 100%;
  }

  .ws-page-header {
    flex-wrap: wrap;
    padding: 14px 16px 12px;
    gap: 10px;
  }

  .ws-page-title { font-size: 18px; }

  .ws-board {
    padding: 6px 12px 16px;
  }

  .ws-board-col {
    width: min(280px, 78vw);
  }

  .ws-stat-pill {
    padding: 0 8px;
  }
  .ws-stat-value { font-size: 16px; }

  .ws-main--scroll {
    -webkit-overflow-scrolling: touch;
  }

  .ws-case-drawer {
    width: 100%;
    max-width: none;
    border-radius: 16px 16px 0 0;
  }

  .ws-profile-header {
    padding: 16px;
  }

  .ws-profile-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .ws-profile-tab {
    flex-shrink: 0;
  }
}

/* ── Workspace pages (missions, signals, team, case detail) ── */

.ws-page-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px 16px;
}
.ws-page-title {
  font-size: 21px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}
.ws-page-sub {
  font-size: 12.5px;
  color: #8296b3;
  margin-top: 3px;
}
.ws-stat-pill {
  text-align: right;
  padding: 0 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.ws-stat-pill:first-child { border-left: none; }
.ws-stat-value {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
}
.ws-stat-label {
  font-size: 10.5px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ws-btn-mission {
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #07111e;
  padding: 9px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  border: none;
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: 0 4px 22px rgba(45, 212, 191, 0.3);
}

.ws-board {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 28px 24px;
}
.ws-board-columns {
  display: flex;
  gap: 16px;
  height: 100%;
  min-width: min-content;
}
.ws-board-col {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ws-board-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 12px;
}
.ws-board-col-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.ws-board-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c7d2e4;
}
.ws-board-col-count {
  font-size: 11px;
  font-weight: 700;
  color: #4a6080;
  font-family: 'JetBrains Mono', monospace;
}
.ws-board-cards {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 2px 8px;
}
.ws-mission-card {
  background: rgba(17, 30, 49, 0.72);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: inherit;
  display: block;
}
.ws-mission-card:hover { border-color: rgba(255, 255, 255, 0.18) !important; }
.ws-mission-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.ws-mission-agent-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
}
.ws-mission-agent-name { font-size: 12px; font-weight: 600; color: #94a3b8; }
.ws-mission-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.ws-mission-title {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
  margin-bottom: 6px;
}
.ws-mission-desc {
  font-size: 12px;
  color: #8296b3;
  line-height: 1.5;
  margin-bottom: 12px;
}
.ws-mission-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-bottom: 9px;
}
.ws-mission-bar-fill { height: 100%; }
.ws-mission-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}
.ws-mission-meta span:last-child { margin-left: auto; }

.ws-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #5eead4;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.18);
}
.ws-filter-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.ws-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
}
.ws-filter-chip:hover { border-color: rgba(255, 255, 255, 0.2) !important; }
.ws-filter-dot { width: 7px; height: 7px; border-radius: 50%; }

.ws-signals-head {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 128px 104px 132px;
  gap: 12px;
  padding: 8px 28px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a6080;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ws-signals-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 28px 24px;
}
.ws-signal-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 128px 104px 132px;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ws-signal-row:hover { background: rgba(255, 255, 255, 0.015); }
.ws-sev-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-block;
}
.ws-signal-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #e6edf6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-signal-ref {
  font-size: 11.5px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-signal-source {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #94a3b8;
}
.ws-signal-agent {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ws-signal-agent-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}
.ws-signal-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.ws-signal-link {
  font-size: 11.5px;
  font-weight: 600;
  color: #5eead4;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.2);
  text-decoration: none;
}
.ws-signal-link:hover { background: rgba(45, 212, 191, 0.14); }

.ws-team-section { padding: 18px 28px 8px; }
.ws-team-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ws-team-divider-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ws-team-divider-line { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.06); }
.ws-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.ws-team-agent-card {
  background: rgba(17, 30, 49, 0.72);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}
.ws-team-agent-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ws-team-agent-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.ws-team-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.ws-team-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 9px 8px;
  text-align: center;
}
.ws-team-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: #e6edf6;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
}
.ws-team-stat-key {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1px;
}
.ws-team-actions { display: flex; gap: 7px; }
.ws-team-chat-btn {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 9px;
  text-decoration: none;
}
.ws-people-table {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
}
.ws-people-head,
.ws-people-row {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr 1.6fr;
  gap: 16px;
  padding: 11px 18px;
  align-items: center;
}
.ws-people-head {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a6080;
  background: rgba(255, 255, 255, 0.02);
}
.ws-people-row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.ws-invite-card {
  background: rgba(17, 30, 49, 0.72);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 16px;
  padding: 18px;
  margin-top: 18px;
}

.ws-case-header {
  flex-shrink: 0;
  padding: 16px 28px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ws-case-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}
.ws-case-breadcrumb a { color: #64748b; text-decoration: none; }
.ws-case-breadcrumb a:hover { color: #94a3b8; }
.ws-case-title-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ws-case-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ws-case-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.ws-case-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 12.5px;
  color: #8296b3;
  flex-wrap: wrap;
}
.ws-case-content { padding: 0 28px 28px; }
.ws-case-rail-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px;
}
.ws-case-rail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #4a6080;
}

.ws-case-main {
  overflow: hidden;
  min-height: 0;
}
.ws-case-timeline-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.ws-case-timeline-inner {
  padding: 22px 28px 28px;
}
.ws-case-timeline-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a6080;
  margin-bottom: 16px;
}
.ws-case-timeline-track {
  position: relative;
  padding-left: 34px;
}
.ws-case-timeline-line {
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.4), rgba(255, 255, 255, 0.06));
}
.ws-case-timeline-event {
  position: relative;
  padding-bottom: 22px;
}
.ws-case-timeline-dot {
  position: absolute;
  left: -31px;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 1px solid;
  box-shadow: 0 0 0 4px #070d18;
}
.ws-case-timeline-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 5px;
}
.ws-case-timeline-who {
  font-size: 13px;
  font-weight: 700;
}
.ws-case-timeline-when {
  font-size: 11px;
  color: #4a6080;
  font-family: 'JetBrains Mono', monospace;
}
.ws-case-timeline-text {
  font-size: 13.5px;
  color: #c7d2e4;
  line-height: 1.55;
  max-width: 640px;
  margin: 0;
}
.ws-case-composer {
  flex-shrink: 0;
  padding: 14px 28px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ws-case-suggestions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ws-case-suggestion {
  font-size: 12px;
  color: #93a6c4;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.ws-case-suggestion:hover {
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.3);
  background: rgba(45, 212, 191, 0.06);
}
.ws-case-composer-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
}
.ws-case-composer-input {
  flex: 1;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  color: #e2e8f0;
  font-size: 13.5px;
  outline: none;
  min-height: 44px;
}
.ws-case-composer-input:focus {
  border-color: rgba(45, 212, 191, 0.4);
}
.ws-case-composer-send {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  color: #07111e;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(45, 212, 191, 0.35);
}
.ws-case-advanced {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}
.ws-case-advanced summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 12px;
}
.ws-case-advanced-body {
  padding-bottom: 12px;
}
.ws-case-rail {
  width: 328px;
  gap: 16px;
}
.ws-case-decision {
  background: rgba(239, 68, 68, 0.05) !important;
  border-color: rgba(239, 68, 68, 0.22) !important;
}
.ws-case-facts {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
}
.ws-case-fact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
}
.ws-case-fact-key {
  font-size: 12px;
  color: #64748b;
}
.ws-case-fact-val {
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
}
.ws-case-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ws-case-entities {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ws-case-entity {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 11px 13px;
}
.ws-case-entity-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid;
}
.ws-case-entity-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-case-entity-type {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

@keyframes ws-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes ws-dfade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ws-dslide {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.ws-case-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ws-case-menu {
  position: relative;
}
.ws-case-menu-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.ws-case-menu-toggle:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.07);
}
.ws-case-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  width: 236px;
  background: #0e1b30;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: ws-rise 0.14s ease;
}
.ws-case-menu-heading {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a6080;
  padding: 6px 10px 4px;
}
.ws-case-menu-form { margin: 0; }
.ws-case-menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}
.ws-case-menu-item:hover,
.ws-case-menu-item--btn:hover {
  background: rgba(255, 255, 255, 0.05);
}
.ws-case-menu-item-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.ws-case-menu-avatar {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid;
}
.ws-case-menu-item-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
}
.ws-case-menu-item-sub {
  display: block;
  font-size: 11px;
  color: #64748b;
}
.ws-case-btn-evidence {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #5eead4;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid rgba(45, 212, 191, 0.3);
  background: rgba(45, 212, 191, 0.08);
  cursor: pointer;
}
.ws-case-btn-evidence:hover {
  background: rgba(45, 212, 191, 0.14);
}
.ws-case-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
}

.ws-case-decision-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.ws-case-decision-freeze {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 0;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  border: none;
  cursor: pointer;
}
.ws-case-decision-freeze:hover { opacity: 0.9; }
.ws-case-decision-reject {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 0;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
}
.ws-case-decision-reject:hover { background: rgba(255, 255, 255, 0.05); }
.ws-case-decision-sar {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 11.5px;
  color: #5eead4;
  font-weight: 600;
  padding: 8px 0 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.ws-case-decision-sar:hover { opacity: 0.8; }
.ws-case-decision-resolved {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 11px 12px;
  animation: ws-rise 0.18s ease;
}
.ws-case-decision-resolved--freeze {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
}
.ws-case-decision-resolved--freeze [data-case-decision-msg] { color: #fca5a5; }
.ws-case-decision-resolved--reject {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ws-case-decision-resolved--reject [data-case-decision-msg] { color: #cbd5e1; }
.ws-case-decision-resolved-msg {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
}
.ws-case-decision-undo {
  font-size: 11.5px;
  color: #8296b3;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.ws-case-decision-undo:hover { color: #e2e8f0; }

/* Decision Twin — explainable response simulation, layered onto existing agents. */
.ws-decision-twin {
  margin: 18px 24px 6px;
  padding: 22px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 5%, rgba(124, 58, 237, 0.16), transparent 34%),
    radial-gradient(circle at 8% 0%, rgba(45, 212, 191, 0.1), transparent 30%),
    rgba(8, 17, 34, 0.92);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
}
.ws-decision-twin-head { display:flex; justify-content:space-between; gap:24px; align-items:flex-start; }
.ws-decision-twin-kicker { display:flex; align-items:center; gap:9px; color:#8bdbff; font-size:11px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.ws-decision-twin-orbit { width:13px; height:13px; border:2px solid #5eead4; border-right-color:#8b5cf6; border-radius:50%; box-shadow:0 0 14px rgba(94,234,212,.55); }
.ws-decision-twin h2 { margin:8px 0 5px; color:#f8fafc; font-size:21px; line-height:1.2; letter-spacing:-.02em; }
.ws-decision-twin-head p { margin:0; color:#8296b3; font-size:12.5px; line-height:1.55; }
.ws-decision-twin-meta { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.ws-decision-twin-meta span { padding:5px 8px; border:1px solid rgba(148,163,184,.15); border-radius:99px; color:#8296b3; font:10px 'JetBrains Mono',monospace; }
.ws-decision-twin-signalbar { display:flex; gap:10px; flex-wrap:wrap; margin:18px 0 14px; }
.ws-decision-twin-signalbar span { color:#7185a3; background:rgba(255,255,255,.025); border:1px solid rgba(148,163,184,.1); border-radius:9px; padding:7px 9px; font-size:10.5px; }
.ws-decision-twin-signalbar strong { color:#dbeafe; font-size:11.5px; }
.ws-decision-delta { margin:0 0 14px; padding:12px; border:1px solid rgba(139,92,246,.25); border-radius:13px; background:linear-gradient(135deg,rgba(49,46,129,.18),rgba(15,23,42,.5)); }
.ws-decision-delta-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.ws-decision-delta-kicker { color:#c4b5fd; font-size:9px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.ws-decision-delta h3 { margin:4px 0 0; color:#e0e7ff; font-size:12px; }
.ws-decision-delta-risk,.ws-decision-delta-stable { padding:4px 7px; border-radius:99px; color:#fcd34d; background:rgba(245,158,11,.1); font:9px 'JetBrains Mono',monospace; white-space:nowrap; }
.ws-decision-delta-stable { color:#a5b4fc; background:rgba(99,102,241,.1); }
.ws-decision-delta-stats { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0; }
.ws-decision-delta-stats span { color:#7185a3; font-size:9.5px; }
.ws-decision-delta-stats strong { margin-left:3px; color:#e0e7ff; font-family:'JetBrains Mono',monospace; }
.ws-decision-delta-paths { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.ws-decision-delta-path { display:grid; gap:3px; padding:8px; border-radius:9px; background:rgba(2,8,20,.38); }
.ws-decision-delta-path strong { color:#cbd5e1; font-size:9.5px; }
.ws-decision-delta-path span { color:#617693; font:8.5px 'JetBrains Mono',monospace; }
.ws-decision-history { margin:0 0 12px; color:#7185a3; font-size:9.5px; }
.ws-decision-history summary { cursor:pointer; color:#8fa3bf; }
.ws-decision-history-list { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.ws-decision-history-item { padding:4px 7px; border:1px solid rgba(148,163,184,.12); border-radius:99px; color:#7185a3; }
.ws-decision-history-item.is-current { border-color:rgba(94,234,212,.35); color:#5eead4; }
.ws-decision-paths { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }
.ws-decision-path { position:relative; display:flex; flex-direction:column; min-width:0; padding:15px; border:1px solid rgba(148,163,184,.12); border-radius:16px; background:rgba(4,11,24,.65); transition:border-color .18s ease, transform .18s ease; }
.ws-decision-path:hover { border-color:rgba(96,165,250,.34); transform:translateY(-1px); }
.ws-decision-path--recommended { border-color:rgba(45,212,191,.34); box-shadow:inset 0 1px 0 rgba(94,234,212,.08); }
.ws-decision-path--selected { border-color:#5eead4; box-shadow:0 0 0 1px rgba(94,234,212,.12), 0 14px 30px rgba(15,118,110,.12); }
.ws-decision-path-top { display:flex; align-items:center; gap:6px; min-height:20px; flex-wrap:wrap; }
.ws-decision-path-eyebrow { color:#8296b3; font-size:9.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.ws-decision-path-recommended,.ws-decision-path-selected { margin-left:auto; padding:3px 6px; border-radius:99px; background:rgba(45,212,191,.12); color:#5eead4; font-size:8.5px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.ws-decision-path h3 { margin:10px 0 6px; color:#f1f5f9; font-size:14px; line-height:1.3; }
.ws-decision-path>p { min-height:50px; margin:0; color:#7185a3; font-size:10.5px; line-height:1.55; }
.ws-decision-path-impact { margin:14px 0; padding:11px; border-radius:11px; background:rgba(15,23,42,.68); }
.ws-decision-path-impact>div:first-child { display:flex; justify-content:space-between; gap:8px; color:#8fa3bf; font-size:9.5px; }
.ws-decision-path-impact strong { color:#f8fafc; font-size:17px; }
.ws-decision-meter { height:4px; margin:8px 0 6px; overflow:hidden; border-radius:9px; background:rgba(148,163,184,.12); }
.ws-decision-meter span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#2dd4bf,#60a5fa,#8b5cf6); }
.ws-decision-path-impact small { color:#586d8a; font-size:9px; }
.ws-decision-path-facts { margin:0; display:grid; gap:7px; }
.ws-decision-path-facts div { display:flex; justify-content:space-between; gap:10px; }
.ws-decision-path-facts dt { color:#586d8a; font-size:9.5px; }
.ws-decision-path-facts dd { margin:0; color:#b8c5d8; font-size:9.5px; text-align:right; }
.ws-decision-path-facts dd.is-safe { color:#5eead4; }
.ws-decision-path-facts dd.is-warning { color:#fbbf24; }
.ws-decision-path-actions { display:grid; gap:5px; margin:13px 0; padding:0; list-style:none; }
.ws-decision-path-actions li { color:#8fa3bf; font-size:9.5px; }
.ws-decision-path-actions li::before { content:'✓'; margin-right:6px; color:#2dd4bf; }
.ws-decision-path-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:auto; padding-top:10px; border-top:1px solid rgba(148,163,184,.09); color:#617693; font-size:8.5px; }
.ws-decision-path-select,.ws-decision-simulate { border:0; border-radius:9px; cursor:pointer; font-weight:800; }
.ws-decision-path-select { padding:7px 9px; color:#07111f; background:#5eead4; font-size:9px; }
.ws-decision-path-locked { color:#fbbf24; font-size:8.5px; }
.ws-decision-twin-foot { display:flex; justify-content:space-between; align-items:flex-end; gap:18px; margin-top:14px; }
.ws-decision-twin-foot details { color:#7185a3; font-size:9.5px; }
.ws-decision-twin-foot summary { cursor:pointer; color:#8fa3bf; }
.ws-decision-twin-foot ul { margin:8px 0; padding-left:17px; line-height:1.6; }
.ws-decision-twin-foot code { color:#586d8a; font-size:8.5px; }
.ws-decision-simulate { padding:10px 13px; color:#eef2ff; background:linear-gradient(135deg,#2563eb,#7c3aed); box-shadow:0 8px 20px rgba(79,70,229,.24); font-size:10px; white-space:nowrap; }
.ws-decision-twin-commands { display:flex; align-items:center; gap:9px; }
.ws-decision-proof-link { padding:9px 11px; border:1px solid rgba(96,165,250,.22); border-radius:9px; color:#93c5fd; font-size:9.5px; font-weight:700; text-decoration:none; white-space:nowrap; }
.ws-decision-proof-banner { display:flex; gap:10px; align-items:flex-start; margin-top:14px; padding:11px 12px; border:1px solid rgba(45,212,191,.23); border-radius:11px; background:rgba(13,148,136,.08); }
.ws-decision-proof-banner>span { display:grid; place-items:center; width:20px; height:20px; flex:0 0 auto; border-radius:50%; color:#06201d; background:#5eead4; font-weight:900; }
.ws-decision-proof-banner strong { color:#ccfbf1; font-size:10.5px; }
.ws-decision-proof-banner p { margin:2px 0 0; color:#7fa9a6; font-size:9.5px; }
.ws-controlled-execution { margin-top:10px; padding:14px; border:1px solid rgba(96,165,250,.18); border-radius:14px; background:linear-gradient(145deg,rgba(15,23,42,.84),rgba(5,12,26,.9)); }
.ws-controlled-execution-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.ws-controlled-execution-kicker { color:#93c5fd; font-size:8.5px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.ws-controlled-execution h3 { margin:5px 0 3px; color:#f1f5f9; font-size:13px; }
.ws-controlled-execution-head p,.ws-controlled-execution-empty p { margin:0; color:#7185a3; font-size:9.5px; line-height:1.5; }
.ws-controlled-execution-status { flex:0 0 auto; padding:5px 8px; border:1px solid rgba(148,163,184,.16); border-radius:99px; color:#94a3b8; background:rgba(148,163,184,.06); font-size:8px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.ws-controlled-execution-status--approved { color:#5eead4; border-color:rgba(45,212,191,.24); background:rgba(45,212,191,.08); }
.ws-controlled-execution-status--released { color:#93c5fd; border-color:rgba(96,165,250,.25); background:rgba(59,130,246,.09); }
.ws-controlled-execution-status--cancelled,.ws-controlled-execution-status--rolled_back { color:#cbd5e1; }
.ws-controlled-execution-empty { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-top:12px; padding:12px; border:1px dashed rgba(96,165,250,.2); border-radius:11px; }
.ws-controlled-execution-empty strong { color:#dbeafe; font-size:10.5px; }
.ws-controlled-execution-empty button { min-height:38px; padding:8px 12px; border:0; border-radius:9px; color:#eff6ff; background:linear-gradient(135deg,#2563eb,#4f46e5); font-size:9px; font-weight:800; cursor:pointer; white-space:nowrap; }
.ws-controlled-execution-readonly { margin:12px 0 0; color:#64748b; font-size:9.5px; }
.ws-controlled-execution-policy { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin-top:12px; }
.ws-controlled-execution-policy div { display:grid; gap:3px; padding:8px; border:1px solid rgba(148,163,184,.09); border-radius:9px; background:rgba(2,8,20,.45); }
.ws-controlled-execution-policy span { color:#586d8a; font-size:8px; }
.ws-controlled-execution-policy strong { color:#cbd5e1; font-size:9.5px; }
.ws-controlled-execution-policy strong.is-safe { color:#5eead4; }
.ws-controlled-execution-steps { display:grid; gap:6px; margin:12px 0 0; padding:0; list-style:none; }
.ws-controlled-execution-steps li { display:flex; align-items:center; gap:9px; padding:8px 9px; border:1px solid rgba(148,163,184,.08); border-radius:9px; background:rgba(255,255,255,.018); }
.ws-controlled-step-index { display:grid; place-items:center; width:20px; height:20px; flex:0 0 auto; border-radius:7px; color:#93c5fd; background:rgba(59,130,246,.12); font:8.5px 'JetBrains Mono',monospace; }
.ws-controlled-step-body { display:grid; min-width:0; flex:1; gap:2px; }
.ws-controlled-step-body strong { color:#cbd5e1; font-size:9.5px; }
.ws-controlled-step-body small { overflow:hidden; color:#586d8a; font-size:8.5px; text-overflow:ellipsis; white-space:nowrap; }
.ws-controlled-step-state { padding:3px 6px; border-radius:99px; color:#8296b3; background:rgba(148,163,184,.08); font-size:7.5px; text-transform:capitalize; }
.ws-controlled-step-state--planned { color:#93c5fd; background:rgba(59,130,246,.1); }
.ws-controlled-step-state--manual_required { color:#fbbf24; background:rgba(245,158,11,.09); }
.ws-controlled-step-state--rolled_back { color:#cbd5e1; }
.ws-controlled-approval-ledger { margin-top:12px; padding-top:10px; border-top:1px solid rgba(148,163,184,.09); }
.ws-controlled-approval-title { margin-bottom:7px; color:#7185a3; font-size:8px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.ws-controlled-approval-ledger>p { margin:0; color:#586d8a; font-size:9px; }
.ws-controlled-approval-row { display:flex; align-items:center; gap:8px; margin-top:5px; }
.ws-controlled-approval-check { display:grid; place-items:center; width:17px; height:17px; flex:0 0 auto; border-radius:50%; color:#05201d; background:#5eead4; font-size:9px; font-weight:900; }
.ws-controlled-approval-row>span:last-child { display:grid; gap:1px; }
.ws-controlled-approval-row strong { color:#ccfbf1; font-size:9px; }
.ws-controlled-approval-row small { color:#586d8a; font-size:8px; }
.ws-controlled-execution-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:12px; }
.ws-controlled-approve-form { display:flex; flex:1; min-width:240px; gap:7px; }
.ws-controlled-approve-form input,.ws-controlled-cancel input { min-width:0; padding:8px 9px; border:1px solid rgba(148,163,184,.15); border-radius:8px; outline:none; color:#dbeafe; background:#07111f; font-size:9px; }
.ws-controlled-approve-form input { flex:1; }
.ws-controlled-btn { min-height:36px; padding:8px 11px; border:0; border-radius:8px; cursor:pointer; font-size:8.5px; font-weight:800; white-space:nowrap; }
.ws-controlled-btn--approve { color:#05201d; background:#5eead4; }
.ws-controlled-btn--release { color:#eff6ff; background:linear-gradient(135deg,#2563eb,#7c3aed); }
.ws-controlled-btn--rollback { color:#fde68a; border:1px solid rgba(245,158,11,.25); background:rgba(245,158,11,.08); }
.ws-controlled-cancel { color:#7185a3; font-size:8.5px; }
.ws-controlled-cancel summary { cursor:pointer; }
.ws-controlled-cancel form { display:flex; gap:6px; margin-top:7px; }
.ws-controlled-cancel button { padding:7px 9px; border:1px solid rgba(248,113,113,.22); border-radius:8px; color:#fca5a5; background:rgba(239,68,68,.07); font-size:8px; cursor:pointer; }
.ws-controlled-execution-notice { margin:10px 0 0; padding:8px 9px; border-radius:8px; color:#93c5fd; background:rgba(59,130,246,.07); font-size:8.5px; line-height:1.45; }
.ws-controlled-execution-notice.is-safe { color:#5eead4; background:rgba(45,212,191,.06); }
.ws-decision-outcome { margin-top:10px; padding:11px 12px; border:1px solid rgba(148,163,184,.12); border-radius:11px; background:rgba(2,8,20,.5); }
.ws-decision-outcome summary { cursor:pointer; color:#a5b4fc; font-size:10px; font-weight:700; }
.ws-decision-outcome form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; gap:9px; align-items:end; margin-top:11px; }
.ws-decision-outcome label { display:grid; gap:5px; color:#7185a3; font-size:9px; }
.ws-decision-outcome label span { display:flex; align-items:center; gap:4px; }
.ws-decision-outcome input,.ws-decision-outcome select { width:100%; min-width:0; box-sizing:border-box; padding:8px; border:1px solid rgba(148,163,184,.16); border-radius:8px; outline:none; color:#dbeafe; background:#07111f; font-size:10px; }
.ws-decision-outcome input:focus,.ws-decision-outcome select:focus { border-color:rgba(94,234,212,.5); }
.ws-decision-outcome-notes { grid-column:1 / -2; }
.ws-decision-outcome button { padding:9px 11px; border:0; border-radius:8px; color:#05201d; background:#5eead4; font-size:9px; font-weight:800; cursor:pointer; }
.ws-decision-feedback { margin-top:10px; padding:11px 12px; border:1px solid rgba(96,165,250,.18); border-radius:11px; background:rgba(2,8,20,.5); }
.ws-decision-feedback summary { cursor:pointer; color:#93c5fd; font-size:10px; font-weight:700; }
.ws-decision-feedback form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) auto; gap:9px; align-items:end; margin-top:11px; }
.ws-decision-feedback label { display:grid; gap:5px; color:#7185a3; font-size:9px; }
.ws-decision-feedback input,.ws-decision-feedback select { width:100%; min-width:0; box-sizing:border-box; padding:8px; border:1px solid rgba(148,163,184,.16); border-radius:8px; outline:none; color:#dbeafe; background:#07111f; font-size:10px; }
.ws-decision-feedback-comment { grid-column:1 / -1; }
.ws-decision-feedback button { padding:9px 11px; border:0; border-radius:8px; color:#07111f; background:#93c5fd; font-size:9px; font-weight:800; cursor:pointer; }

@media (max-width: 1100px) {
  .ws-decision-paths { grid-template-columns:1fr; }
  .ws-decision-path>p { min-height:0; }
}

@media (max-width: 680px) {
  .ws-decision-twin { margin:12px 12px 4px; padding:16px; border-radius:18px; }
  .ws-decision-twin-head,.ws-decision-twin-foot { align-items:stretch; flex-direction:column; }
  .ws-decision-twin-meta { justify-content:flex-start; }
  .ws-decision-twin-signalbar { display:grid; grid-template-columns:1fr 1fr; }
  .ws-decision-delta-head { flex-direction:column; }
  .ws-decision-delta-paths { grid-template-columns:1fr; }
  .ws-decision-simulate { width:100%; min-height:44px; }
  .ws-decision-twin-commands { align-items:stretch; flex-direction:column; }
  .ws-decision-outcome form { grid-template-columns:1fr 1fr; }
  .ws-decision-outcome-notes { grid-column:1 / -1; }
  .ws-decision-outcome button { min-height:42px; }
  .ws-decision-feedback form { grid-template-columns:1fr; }
  .ws-decision-feedback-comment { grid-column:auto; }
  .ws-decision-feedback button { min-height:42px; }
  .ws-controlled-execution-head,.ws-controlled-execution-empty { align-items:stretch; flex-direction:column; }
  .ws-controlled-execution-policy { grid-template-columns:1fr 1fr; }
  .ws-controlled-execution-empty button { width:100%; min-height:44px; }
  .ws-controlled-approve-form { min-width:100%; flex-direction:column; }
  .ws-controlled-btn { width:100%; min-height:44px; }
  .ws-controlled-execution-actions>form { width:100%; }
  .ws-controlled-cancel { width:100%; }
  .ws-controlled-cancel form { flex-direction:column; }
  .ws-decision-path-footer { font-size:9px; }
  .ws-decision-path-select { min-height:38px; }
}

.ws-case-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
}
.ws-case-drawer-root[hidden] { display: none; }
body.ws-case-drawer-open { overflow: hidden; }
.ws-case-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 18, 0.62);
  backdrop-filter: blur(2px);
  animation: ws-dfade 0.2s ease;
}
.ws-case-drawer {
  position: relative;
  width: 620px;
  max-width: 94vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0a1424;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
  animation: ws-dslide 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ws-case-drawer-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ws-case-drawer-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.28);
  flex-shrink: 0;
}
.ws-case-drawer-title {
  font-size: 15px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  color: #fff;
}
.ws-case-drawer-sub {
  font-size: 11.5px;
  color: #64748b;
}
.ws-case-drawer-header-text { flex: 1; min-width: 0; }
.ws-case-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  flex-shrink: 0;
}
.ws-case-drawer-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}
.ws-case-drawer-body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.ws-case-drawer-nav {
  width: 186px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 8px;
  overflow-y: auto;
  background: #0b1526;
}
.ws-case-drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  margin-bottom: 2px;
  border: none;
  background: transparent;
  text-align: left;
  color: #c7d2e4;
  font-size: 12.5px;
  font-weight: 500;
}
.ws-case-drawer-nav-item:hover { background: rgba(255, 255, 255, 0.04); }
.ws-case-drawer-nav-item.is-active {
  background: rgba(45, 212, 191, 0.1);
  color: #5eead4;
  font-weight: 700;
}
.ws-case-drawer-nav-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.ws-case-drawer-nav-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-case-drawer-nav-count {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #93a6c4;
  flex-shrink: 0;
}
.ws-case-drawer-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 18px 18px 28px;
}
.ws-case-drawer-intro {
  font-size: 12.5px;
  color: #8296b3;
  margin: 0 0 14px;
}
.ws-case-drawer-panel[hidden] { display: none; }

.ws-case-timeline-card {
  margin-top: 12px;
  max-width: 560px;
}
.ws-case-timeline-card-sar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: rgba(45, 212, 191, 0.05);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
}
.ws-case-timeline-card-sar:hover { background: rgba(45, 212, 191, 0.08); }
.ws-case-timeline-card-sar-title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #5eead4;
}
.ws-case-timeline-card-sar-sub {
  display: block;
  font-size: 11.5px;
  color: #64748b;
}
.ws-case-timeline-card-sar-cta {
  font-size: 11.5px;
  font-weight: 600;
  color: #2dd4bf;
  flex-shrink: 0;
}
.ws-case-timeline-card-recheck {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(45, 212, 191, 0.05);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
}
.ws-case-timeline-card-recheck-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #2dd4bf;
}
.ws-case-timeline-card-recheck-title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #5eead4;
}
.ws-case-timeline-card-recheck-sub {
  display: block;
  font-size: 11.5px;
  color: #64748b;
}
.ws-case-timeline-card-recheck-cta {
  font-size: 11.5px;
  font-weight: 600;
  color: #2dd4bf;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.ws-case-timeline-card-signals {
  background: rgba(17, 30, 49, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 6px 14px 10px;
}
.ws-case-timeline-card-signals-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
  padding: 10px 0 4px;
}
.ws-case-timeline-card-signals-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  color: #c7d2e4;
}
.ws-case-timeline-card-signals-row:last-child { border-bottom: none; }
.ws-case-timeline-card-signals-name { flex: 1; min-width: 0; }
.ws-case-timeline-card-signals-src { font-size: 11px; color: #64748b; }

.ws-main .ws-board {
  flex: 1;
  min-height: 0;
}

.ws-rail-cases { padding: 0 12px 10px; }
.ws-rail-case-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  text-decoration: none;
  color: inherit;
  font-size: 12.5px;
}
.ws-rail-case-link:hover { background: rgba(255, 255, 255, 0.04); }
.ws-rail-case-link.is-current { background: rgba(45, 212, 191, 0.08); border: 1px solid rgba(45, 212, 191, 0.22); }

.ws-triage-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 48px;
  box-sizing: border-box;
  background:
    radial-gradient(1100px 700px at 30% -10%, rgba(45, 212, 191, 0.08), transparent 60%),
    radial-gradient(900px 600px at 90% 110%, rgba(99, 102, 241, 0.1), transparent 60%),
    #0a1018;
}
.ws-triage-blurb { max-width: 300px; flex-shrink: 0; }
.ws-triage-phone {
  width: 390px;
  max-width: 100%;
  border-radius: 44px;
  border: 10px solid #1a2230;
  background: linear-gradient(180deg, #070d18, #0b1526);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.ws-triage-app { display: flex; flex-direction: column; min-height: 720px; }
.ws-triage-queue {
  flex: 1;
  overflow-y: auto;
  padding: 6px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ws-triage-card { border-radius: 20px; padding: 16px; }
.ws-training-content { padding: 18px 28px 32px; max-width: 960px; }

/* ── Profile settings page ── */
.ws-profile-header {
  padding: 22px 36px 0;
}
.ws-profile-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
}
.ws-profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.ws-profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 900;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  color: #2dd4bf;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(99, 102, 241, 0.14));
  border: 1px solid rgba(45, 212, 191, 0.35);
  flex-shrink: 0;
}
.ws-profile-name {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}
.ws-profile-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.28);
}
.ws-profile-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 7px;
  font-size: 12.5px;
  color: #8296b3;
  flex-wrap: wrap;
}
.ws-profile-signout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #93a6c4;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  margin-left: auto;
}
.ws-profile-signout:hover {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.ws-profile-tabs {
  display: flex;
  gap: 4px;
  margin-top: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ws-profile-tab {
  font-size: 13px;
  font-weight: 600;
  padding: 11px 14px;
  cursor: pointer;
  color: #94a3b8;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
}
.ws-profile-tab.is-active {
  color: #5eead4;
  border-bottom-color: #2dd4bf;
}
.ws-profile-content {
  padding: 24px 36px 44px;
  max-width: 720px;
  width: 100%;
  box-sizing: border-box;
}
.ws-profile-panel {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: ws-rise 0.18s ease;
}
.ws-profile-panel.is-active { display: flex; }
@keyframes ws-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.ws-profile-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #93a6c4;
  margin-bottom: 7px;
}
.ws-profile-input,
.ws-profile-textarea,
.ws-profile-select {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 11px 13px;
  color: #e2e8f0;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
}
.ws-profile-input:focus,
.ws-profile-textarea:focus,
.ws-profile-select:focus {
  border-color: rgba(45, 212, 191, 0.4);
}
.ws-profile-input:read-only,
.ws-profile-input[disabled] {
  color: #8296b3;
  cursor: default;
}
.ws-profile-textarea { min-height: 74px; resize: vertical; line-height: 1.55; }
.ws-profile-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ws-profile-readonly {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13.5px;
  color: #8296b3;
}
.ws-profile-readonly-hint { font-size: 11px; color: #4a6080; }
.ws-profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.ws-profile-btn-secondary {
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.ws-profile-btn-secondary:hover { background: rgba(255, 255, 255, 0.05); }
.ws-profile-btn-primary {
  font-size: 12.5px;
  font-weight: 700;
  color: #07111e;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.ws-profile-btn-primary:hover { opacity: 0.9; }
.ws-profile-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a6080;
  margin-bottom: 10px;
}
.ws-profile-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
}
.ws-profile-toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.ws-profile-toggle-row:last-child { border-bottom: none; }
.ws-profile-toggle-label { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.ws-profile-toggle-desc { font-size: 11.5px; color: #64748b; margin-top: 1px; }
.ws-profile-toggle {
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  padding: 2px;
  border: none;
  cursor: pointer;
  display: flex;
  transition: background 0.15s;
}
.ws-profile-toggle.is-on { background: #14b8a6; }
.ws-profile-toggle.is-off { background: rgba(255, 255, 255, 0.12); }
.ws-profile-toggle-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.ws-profile-toggle.is-on .ws-profile-toggle-knob { transform: translateX(18px); }
.ws-profile-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px 18px;
}
.ws-profile-card-title { font-size: 14px; font-weight: 700; color: #f1f5f9; margin-bottom: 2px; }
.ws-profile-card-sub { font-size: 12.5px; color: #8296b3; margin-bottom: 14px; }
.ws-profile-card-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ws-profile-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.ws-profile-session {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 13px 15px;
}
.ws-profile-session.is-current { border-color: rgba(45, 212, 191, 0.22); }
.ws-profile-session-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ws-profile-session-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.14);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.28);
}
.ws-profile-pw-error { font-size: 12px; color: #f87171; margin-top: 4px; }

/* ── Org invite page (standalone split layout) ── */
.invite-page {
  font-family: 'Inter', system-ui, sans-serif;
  background: #060b14;
  color: #f1f5f9;
  min-height: 100vh;
}
.invite-panel-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
  background: #070d18;
}
.invite-panel-inner { width: 420px; max-width: 100%; }
.invite-org-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
}
.invite-org-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #5eead4, #6366f1);
}
.invite-meta-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
}
.invite-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  gap: 12px;
}
.invite-meta-key { font-size: 12px; color: #64748b; }
.invite-meta-val { font-size: 12.5px; font-weight: 600; color: #e2e8f0; text-align: right; }
.invite-meta-val--role { color: #5eead4; }
.invite-meta-val--warn { color: #fbbf24; }
.invite-cta {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  color: #07111e;
  box-shadow: 0 4px 24px rgba(45, 212, 191, 0.3);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.invite-cta:hover { opacity: 0.92; }
.invite-cta-secondary {
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #93a6c4;
  margin-top: 14px;
  text-decoration: none;
}
.invite-cta-secondary:hover { color: #e2e8f0; }
.invite-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.35);
}
.invite-error-title {
  font-size: 23px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  color: #fff;
  margin: 0 0 8px;
}
.invite-error-copy { font-size: 13.5px; color: #8296b3; margin: 0 0 22px; }

@media (max-width: 900px) {
  .ws-profile-grid-2 { grid-template-columns: 1fr; }
  .ws-signals-head,
  .ws-signal-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .ws-triage-page { flex-direction: column; padding: 24px; }
}

/* Signals rail */
.ws-signals-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ws-signals-kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 13px;
}
.ws-signals-kpi-value {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
}
.ws-signals-kpi-key {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}
.ws-signals-sources {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ws-signals-source-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.ws-signals-source-name {
  flex: 1;
  font-size: 12.5px;
  color: #c7d2e4;
}
.ws-signals-source-count {
  font-size: 11.5px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}
.ws-signals-source-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.ws-signals-source-fill {
  height: 100%;
  border-radius: 999px;
}
.ws-signals-triage-card {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  padding: 14px;
}
.ws-signals-triage-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #c7d2e4;
  margin-bottom: 4px;
}
.ws-signals-triage-body {
  font-size: 11.5px;
  color: #8296b3;
  line-height: 1.5;
}
.ws-signal-promote {
  font-size: 11.5px;
  font-weight: 700;
  color: #07111e;
  padding: 5px 11px;
  border-radius: 8px;
  background: #2dd4bf;
  text-decoration: none;
}
.ws-signal-promote:hover { opacity: 0.88; }
.ws-signal-dismiss {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  cursor: pointer;
}
.ws-signal-dismiss:hover { color: #94a3b8; }

/* New investigation */
.ws-create-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(245, 158, 11, 0.06), transparent 60%),
    radial-gradient(760px 420px at 8% 110%, rgba(99, 102, 241, 0.06), transparent 62%),
    #070d18;
}
.ws-create-header {
  flex-shrink: 0;
  padding: 16px 32px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ws-create-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ws-create-bulk-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #93a6c4;
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}
.ws-create-bulk-link:hover {
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.3);
}
.ws-create-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ws-create-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 40px;
}
.ws-create-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ws-orion-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.ws-orion-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at 88% 0%, rgba(245, 158, 11, 0.14), transparent 70%);
  pointer-events: none;
}
.ws-orion-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #f59e0b, rgba(245, 158, 11, 0.25));
}
.ws-orion-avatar {
  width: 71px;
  height: 71px;
  border-radius: 50%;
  object-fit: cover;
  background: #0a1526;
}
.ws-orion-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 3px solid #0b1526;
  background: #f59e0b;
}
.ws-orion-copy { position: relative; flex: 1; min-width: 0; }
.ws-orion-name-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 3px;
}
.ws-orion-name {
  font-size: 16px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  color: #fff;
}
.ws-orion-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.ws-orion-line {
  font-size: 13.5px;
  color: #c7d2e4;
  line-height: 1.55;
  margin: 0;
  max-width: 520px;
}
.ws-create-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a6080;
  margin: 6px 0 12px;
}
.ws-create-section-muted {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #3d5273;
}
.ws-create-fields,
.ws-create-field-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ws-create-label,
.ws-create-field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #c7d2e4;
  margin-bottom: 7px;
}
.ws-create-field-label { font-size: 11.5px; color: #93a6c4; margin-bottom: 6px; }
.ws-create-required { color: #f87171; }
.ws-create-input,
.ws-create-textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  padding: 12px 14px;
  color: #e2e8f0;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
}
.ws-create-input--agent {
  padding: 9px 12px;
  font-size: 12.5px;
  border-radius: 9px;
}
.ws-create-input:focus,
.ws-create-textarea:focus {
  border-color: rgba(45, 212, 191, 0.4);
}
.ws-create-textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.ws-priority-row { display: flex; gap: 8px; }
.ws-priority-pill {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 0;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ws-specialist-list { display: flex; flex-direction: column; gap: 10px; }
.ws-specialist-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ws-specialist-card.is-disabled { opacity: 0.72; }
.ws-specialist-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
}
.ws-specialist-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
}
.ws-specialist-meta { flex: 1; min-width: 0; }
.ws-specialist-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ws-specialist-name { font-size: 14px; font-weight: 700; color: #f1f5f9; }
.ws-specialist-role { font-size: 11px; color: #64748b; }
.ws-specialist-desc { font-size: 11.5px; color: #64748b; margin-top: 2px; }
.ws-toggle { position: relative; flex-shrink: 0; cursor: pointer; }
.ws-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ws-toggle-track {
  display: block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.15s;
}
.ws-toggle-track::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.ws-toggle-input:checked + .ws-toggle-track {
  background: var(--toggle-accent, #2dd4bf);
}
.ws-toggle-input:checked + .ws-toggle-track::after {
  transform: translateX(18px);
}
.ws-specialist-fields { padding: 0 15px 15px 68px; }
.ws-specialist-fields.is-collapsed { display: none; }
.ws-specialist-divider { height: 1px; margin-bottom: 11px; }
.ws-create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.ws-create-grid-span { grid-column: 1 / -1; }
.ws-evidence-drop {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.ws-evidence-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ws-evidence-copy { flex: 1; min-width: 0; }
.ws-evidence-title { font-size: 13px; font-weight: 600; color: #c7d2e4; }
.ws-evidence-sub { font-size: 11.5px; color: #64748b; margin-top: 2px; }
.ws-evidence-browse { font-size: 12px; font-weight: 600; color: #5eead4; }
.ws-create-footer {
  flex-shrink: 0;
  padding: 14px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 20, 36, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 16px;
}
.ws-create-summary {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: #8296b3;
}
.ws-create-actions { display: flex; align-items: center; gap: 9px; }
.ws-create-draft-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  padding: 10px 16px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.ws-create-draft-btn:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}
.ws-create-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  color: #07111e;
  box-shadow: 0 6px 24px rgba(45, 212, 191, 0.32);
}
.ws-create-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.ws-create-spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  .ws-create-grid { grid-template-columns: 1fr; }
  .ws-create-footer { flex-direction: column; align-items: stretch; }
  .ws-create-actions { justify-content: stretch; }
  .ws-create-submit-btn, .ws-create-draft-btn { flex: 1; justify-content: center; }
}

/* ── Defender console (evidence drawer) ── */
.ws-defender {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.ws-defender-header { min-width: 0; }
.ws-defender-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a6080;
}
.ws-defender-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
}
.ws-defender-lead {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #8296b3;
  line-height: 1.5;
}
.ws-defender-stats {
  margin: 8px 0 0;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: #64748b;
}
.ws-defender-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ws-defender-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.ws-defender-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}
.ws-defender-pair--single { display: block; }
.ws-defender-pair--triple .ws-defender-select { flex: 1 1 120px; min-width: 0; }
.ws-defender-pair .ws-defender-select { flex: 1 1 140px; min-width: 0; }
.ws-defender-pair .ws-defender-btn { flex: 0 1 auto; }
.ws-defender-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #c7d2e4;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.3;
}
.ws-defender-btn:hover { background: rgba(255, 255, 255, 0.07); color: #f1f5f9; }
.ws-defender-btn--full { width: 100%; }
.ws-defender-btn--cyan { color: #a5f3fc; border-color: rgba(45, 212, 191, 0.28); background: rgba(45, 212, 191, 0.08); }
.ws-defender-btn--emerald { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.28); background: rgba(52, 211, 153, 0.08); }
.ws-defender-btn--blue { color: #93c5fd; border-color: rgba(59, 130, 246, 0.28); background: rgba(59, 130, 246, 0.08); }
.ws-defender-btn--orange { color: #fdba74; border-color: rgba(249, 115, 22, 0.28); background: rgba(249, 115, 22, 0.08); }
.ws-defender-btn--indigo { color: #c7d2fe; border-color: rgba(99, 102, 241, 0.28); background: rgba(99, 102, 241, 0.08); }
.ws-defender-btn--rose { color: #fda4af; border-color: rgba(244, 63, 94, 0.28); background: rgba(244, 63, 94, 0.08); }
.ws-defender-btn--teal { color: #5eead4; border-color: rgba(45, 212, 191, 0.3); background: rgba(45, 212, 191, 0.1); }
.ws-defender-btn--primary {
  color: #07111e;
  border-color: transparent;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  box-shadow: 0 4px 18px rgba(45, 212, 191, 0.28);
}
.ws-defender-btn--primary:hover { opacity: 0.92; color: #07111e; }
.ws-defender-btn--destructive {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.12);
  font-weight: 700;
}
.ws-defender-btn--destructive:hover { background: rgba(239, 68, 68, 0.2); color: #fff; }
.ws-defender-select,
.ws-defender-input {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 12.5px;
  font-family: inherit;
  box-sizing: border-box;
}
.ws-defender-input--area { min-height: 88px; resize: vertical; line-height: 1.5; }
.ws-defender-select:focus,
.ws-defender-input:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.4);
}
.ws-defender-menu { position: relative; flex: 1 1 160px; min-width: 0; }
.ws-defender-menu > summary { list-style: none; width: 100%; }
.ws-defender-menu > summary::-webkit-details-marker { display: none; }
.ws-defender-menu-panel {
  margin-top: 6px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0e1b30;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.ws-defender-menu-link {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #c7d2e4;
  font-size: 12px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}
.ws-defender-menu-link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.ws-defender-menu-link--button { word-break: break-word; }
.ws-defender-section { min-width: 0; }
.ws-defender-section-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a6080;
}
.ws-defender-ti-list { display: flex; flex-direction: column; gap: 10px; }
.ws-defender-ti-card {
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
}
.ws-defender-ti-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.ws-defender-ti-kind {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.ws-defender-ti-target {
  flex: 1 1 100%;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  word-break: break-word;
  line-height: 1.4;
}
.ws-defender-ti-risk {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}
.ws-defender-ti-risk--high { color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }
.ws-defender-ti-risk--medium { color: #fde047; border-color: rgba(234, 179, 8, 0.28); }
.ws-defender-ti-risk--low { color: #86efac; border-color: rgba(34, 197, 94, 0.28); }
.ws-defender-ti-risk--pending { color: #94a3b8; }
.ws-defender-ti-stats { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ws-defender-ti-stat {
  display: grid;
  grid-template-columns: minmax(88px, 34%) 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.ws-defender-ti-stat:first-child { border-top: none; padding-top: 0; }
.ws-defender-ti-stat dt {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  word-break: break-word;
}
.ws-defender-ti-stat dd {
  margin: 0;
  font-size: 12px;
  color: #c7d2e4;
  line-height: 1.45;
  word-break: break-word;
}
.ws-defender-ti-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ws-defender-ti-link {
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  color: #5eead4;
  text-decoration: none;
}
.ws-defender-ti-link:hover { background: rgba(45, 212, 191, 0.08); }
.ws-defender-ti-error { margin: 0; font-size: 12px; color: #fca5a5; line-height: 1.45; }
.ws-defender-ti-pending { margin: 0; font-size: 12px; color: #64748b; }
.ws-defender-body { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ws-defender-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ws-defender-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
}
.ws-defender-card-title { font-size: 13px; font-weight: 700; color: #f1f5f9; margin-bottom: 4px; }
.ws-defender-card-body { margin: 0; font-size: 12px; color: #8296b3; line-height: 1.5; }
.ws-defender-card-body code { font-size: 11px; color: #94a3b8; }
.ws-defender-tone {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ws-defender-tone--critical { color: #fca5a5; }
.ws-defender-tone--warning { color: #fde047; }
.ws-defender-tone--info { color: #93c5fd; }
.ws-defender-empty {
  padding: 22px 16px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}
.ws-defender-empty--compact { padding: 16px 14px; }
.ws-defender-empty-icon { font-size: 24px; display: block; margin-bottom: 8px; }
.ws-defender-empty-title { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: #c7d2e4; }
.ws-defender-empty-body { margin: 0; font-size: 12px; color: #64748b; line-height: 1.5; }
.ws-defender-form { display: flex; flex-direction: column; gap: 12px; }
.ws-defender-form--outreach { border-color: rgba(45, 212, 191, 0.18); background: rgba(45, 212, 191, 0.04); }
.ws-defender-form--divider { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.ws-defender-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #93a6c4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ws-defender-outreach-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ws-defender-subcard {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}
.ws-defender-subcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ws-defender-subcard-count {
  font-family: 'JetBrains Mono', monospace;
  color: #5eead4;
  text-transform: none;
  letter-spacing: 0;
}
.ws-defender-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  text-transform: lowercase;
}
.ws-defender-badge--ok { color: #86efac; border-color: rgba(34, 197, 94, 0.28); }
.ws-defender-badge--warn { color: #fde047; border-color: rgba(234, 179, 8, 0.28); }
.ws-defender-badge--info { color: #5eead4; border-color: rgba(45, 212, 191, 0.28); }
.ws-defender-badge--delivered { color: #86efac; }
.ws-defender-badge--pending { color: #fde047; }
.ws-defender-badge--dispatching { color: #67e8f9; }
.ws-defender-badge--completed { color: #86efac; }
.ws-defender-badge--in_progress { color: #fde047; }
.ws-defender-badge--skipped { color: #94a3b8; }
.ws-defender-badge--failed { color: #fca5a5; }
.ws-defender-badge--cancelled { color: #c4b5fd; }
.ws-defender-log-actions { margin-top: 10px; }
.ws-defender-badge--sent { color: #93c5fd; }
.ws-defender-badge--queued { color: #fde047; }
.ws-defender-target-list { display: flex; flex-direction: column; gap: 8px; max-height: 180px; overflow-y: auto; }
.ws-defender-target-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}
.ws-defender-target-copy { min-width: 0; flex: 1; }
.ws-defender-target-name { display: block; font-size: 13px; font-weight: 600; color: #f1f5f9; word-break: break-word; }
.ws-defender-target-meta { display: block; margin-top: 2px; font-size: 11px; color: #64748b; line-height: 1.4; }
.ws-defender-hint { margin: 8px 0 0; font-size: 11px; color: #64748b; }
.ws-defender-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #c7d2e4; }
.ws-defender-log-list { display: flex; flex-direction: column; gap: 8px; }
.ws-defender-log-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.ws-defender-log-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ws-defender-log-item-title { font-size: 12.5px; font-weight: 700; color: #f1f5f9; word-break: break-word; }
.ws-defender-log-meta { margin: 4px 0 0; font-size: 11px; color: #64748b; }
.ws-defender-log-detail { margin: 6px 0 0; font-size: 12px; color: #5eead4; word-break: break-all; }
.ws-defender-log-body { margin: 6px 0 0; font-size: 12px; color: #94a3b8; line-height: 1.45; }
.ws-defender-target-list--saved { margin-top: 12px; }
.ws-defender-target-saved {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.ws-defender-target-saved-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ── Linked signals (evidence drawer) ── */
.ws-linked-signals {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.ws-linked-section { min-width: 0; }
.ws-linked-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ws-linked-section-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a6080;
}
.ws-linked-section-count {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: #64748b;
  flex-shrink: 0;
}
.ws-linked-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ws-linked-card {
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
}
.ws-linked-card--hit {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.05);
}
.ws-linked-card-body {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
}
.ws-linked-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 9px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.22);
}
.ws-linked-icon--hit {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
}
.ws-linked-main {
  flex: 1;
  min-width: 0;
}
.ws-linked-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ws-linked-kind {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.22);
}
.ws-linked-source {
  font-size: 11px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}
.ws-linked-value {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: normal;
  font-family: 'JetBrains Mono', monospace;
}
.ws-linked-foot {
  margin: 6px 0 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}
.ws-linked-watch-form {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ws-linked-watch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.08);
  color: #5eead4;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.ws-linked-watch-btn:hover {
  background: rgba(45, 212, 191, 0.14);
}
.ws-linked-hit-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #fecaca;
}
.ws-linked-hit-sev {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
}
.ws-linked-empty {
  padding: 22px 16px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  list-style: none;
}
.ws-linked-empty-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 8px;
}
.ws-linked-empty-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #c7d2e4;
}
.ws-linked-empty-body {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* ── Public pages (legal, about, contact) ─────────────────────────────────── */
.ws-public-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.ws-public-main {
  flex: 1;
  padding: 32px 24px 48px;
}
.ws-public-inner {
  max-width: 720px;
  margin: 0 auto;
}
.ws-public-header {
  margin-bottom: 28px;
}
.ws-public-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(45, 212, 191, 0.75);
}
.ws-public-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
}
.ws-public-accent {
  background: linear-gradient(135deg, #2dd4bf, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ws-public-subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}
.ws-public-card {
  padding: 24px;
  margin-bottom: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 23, 39, 0.72);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}
.ws-public-card section + section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ws-public-card h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
}
.ws-public-card p,
.ws-public-card li {
  font-size: 14px;
  line-height: 1.65;
  color: #94a3b8;
}
.ws-public-card strong { color: #e2e8f0; }
.ws-public-card ul { margin: 0; padding-left: 1.1rem; }
.ws-public-link {
  color: #5eead4;
  text-decoration: none;
}
.ws-public-link:hover { color: #99f6e4; }
.ws-public-footnote {
  margin-top: 16px;
  font-size: 11px;
  color: #475569;
  text-align: center;
}
.ws-public-nav-links a.is-active { color: #2dd4bf; }
.ws-public-footer {
  flex-direction: column;
  gap: 10px;
  padding-bottom: 28px;
}
.ws-public-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  font-size: 12px;
}
.ws-public-footer-links a {
  color: #64748b;
  text-decoration: none;
}
.ws-public-footer-links a:hover { color: #cbd5e1; }
.ws-public-footer-meta { font-size: 12px; color: #475569; }

/* ── Docs / training cards ─────────────────────────────────────────────────── */
.ws-docs-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
@media (min-width: 1024px) {
  .ws-docs-header { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.ws-docs-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(45, 212, 191, 0.72);
}
.ws-docs-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
}
.ws-docs-lead {
  margin: 10px 0 0;
  max-width: 36rem;
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
}
.ws-docs-callout {
  max-width: 22rem;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.08);
}
.ws-docs-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}
.ws-docs-toc-label {
  width: 100%;
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}
.ws-docs-toc a {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
}
.ws-docs-toc a:hover {
  color: #e2e8f0;
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.06);
}
.ws-docs-card {
  padding: 22px 24px;
  margin-bottom: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 23, 39, 0.65);
}
.ws-docs-section-label {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

/* ── Bulk import ───────────────────────────────────────────────────────────── */
.ws-bulk-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.ws-bulk-scroll {
  flex: 1;
  overflow: auto;
  padding: 18px 28px 32px;
}
.ws-bulk-inner {
  max-width: 960px;
  margin: 0 auto;
}
.ws-bulk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 1100px) {
  .ws-bulk-grid { grid-template-columns: 1.6fr 1fr; }
}
.ws-bulk-panel {
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 23, 39, 0.72);
}
.ws-bulk-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.ws-bulk-panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
}
.ws-bulk-panel-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}
.ws-bulk-columns {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  background: rgba(45, 212, 191, 0.05);
}
.ws-bulk-columns-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.ws-bulk-columns-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #99f6e4;
}
.ws-bulk-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ws-bulk-tag {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.16);
  background: rgba(0, 0, 0, 0.22);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: #ccfbf1;
}
.ws-bulk-stat {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}
.ws-bulk-stat-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}
.ws-bulk-stat-value { font-size: 14px; font-weight: 600; color: #f1f5f9; }
.ws-bulk-stat-value--ok { color: #86efac; }
.ws-bulk-stat-value--warn { color: #fde047; }
.ws-bulk-stat-detail {
  margin-top: 6px;
  font-size: 11px;
  color: #64748b;
  overflow-wrap: anywhere;
}
.ws-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ws-bulk-table-wrap { overflow-x: auto; }
.ws-bulk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ws-bulk-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ws-bulk-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  vertical-align: top;
}
.ws-bulk-table td:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #64748b;
}
.ws-bulk-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ws-bulk-badge--ok {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
}
.ws-bulk-badge--err {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.22);
}
.ws-bulk-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ws-bulk-report-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}
.ws-bulk-report-pill--ok {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.1);
}
.ws-bulk-report-pill--err {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.1);
}

/* ── Pricing ───────────────────────────────────────────────────────────────── */
.ws-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .ws-pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.ws-pricing-card {
  position: relative;
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 23, 39, 0.72);
  display: flex;
  flex-direction: column;
}
.ws-pricing-card--highlight {
  border-color: rgba(45, 212, 191, 0.35);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.08), rgba(13, 23, 39, 0.85));
  box-shadow: 0 20px 50px rgba(45, 212, 191, 0.08);
}
.ws-pricing-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5eead4;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.25);
  background: rgba(45, 212, 191, 0.1);
}
.ws-pricing-name {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
}
.ws-pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.ws-pricing-price {
  font-size: 28px;
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}
.ws-pricing-period {
  font-size: 12px;
  color: #64748b;
}
.ws-pricing-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
}
.ws-pricing-features {
  margin: 0 0 18px;
  padding-left: 1.1rem;
  flex: 1;
  font-size: 13px;
  line-height: 1.65;
  color: #94a3b8;
}
.ws-pricing-features li { margin-bottom: 6px; }
.ws-pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.ws-pricing-cta--primary {
  background: linear-gradient(135deg, #14b8a6, #2dd4bf);
  color: #042f2e;
  border-color: transparent;
}

/* ── Demo hub ──────────────────────────────────────────────────────────────── */
.ws-demo-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0;
}
@media (min-width: 720px) {
  .ws-demo-links { grid-template-columns: 1fr 1fr; }
}
.ws-demo-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
}
.ws-demo-link-card:hover {
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.05);
}
.ws-demo-link-icon { font-size: 22px; }
.ws-demo-link-title {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
}

/* ── Mobile usability hardening ──
   This layer follows the page-specific desktop rules that otherwise override
   the original shell breakpoint. */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .ws-shell {
    height: 100dvh;
    min-height: 100dvh;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .ws-topbar {
    height: 54px;
    padding: 0 max(12px, env(safe-area-inset-left, 0px));
  }

  .ws-brand-icon {
    width: 30px;
    height: 30px;
  }

  .ws-user-chip,
  .ws-menu-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .ws-bottom-nav {
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 4px max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px));
  }

  .ws-bottom-nav-item {
    min-height: 52px;
    touch-action: manipulation;
  }

  .ws-body,
  .ws-main,
  .ws-main--scroll {
    min-width: 0;
    max-width: 100%;
  }

  .ws-main--scroll {
    overscroll-behavior-y: contain;
  }

  .ws-cases-content,
  .ws-training-content,
  .ws-bulk-scroll,
  .ws-public-main {
    padding: 16px 14px 28px;
  }

  .ws-page-header,
  .ws-case-header {
    align-items: flex-start;
    padding: 14px;
  }

  .ws-page-header > :last-child,
  .ws-case-title-row,
  .ws-case-header-actions {
    width: 100%;
  }

  .ws-case-title-row {
    flex-direction: column;
  }

  .ws-case-title-row > :first-child {
    width: 100%;
  }

  .ws-case-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ws-case-header-actions .ws-case-menu,
  .ws-case-header-actions .ws-case-menu-toggle {
    width: 100%;
  }

  .ws-case-header-actions .ws-case-btn-evidence {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .ws-page-header .ws-btn-mission,
  .ws-case-header-actions > *,
  .ws-case-btn-evidence {
    min-height: 44px;
  }

  .ws-page-header .ws-btn-mission {
    margin-left: 0;
  }

  .ws-page-title,
  .ws-case-title,
  .ws-profile-name {
    overflow-wrap: anywhere;
  }

  .ws-stat-pill {
    flex: 1 1 30%;
    padding: 0 6px;
    text-align: left;
    border-left: 0;
  }

  .ws-team-section,
  .ws-case-content,
  .ws-profile-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ws-team-grid {
    grid-template-columns: 1fr;
  }

  .ws-team-agent-card,
  .ws-profile-card,
  .ws-bulk-panel,
  .ws-docs-card {
    padding: 16px;
  }

  .ws-team-actions,
  .ws-profile-actions,
  .ws-bulk-actions,
  .ws-create-actions,
  .ws-case-decision-actions {
    flex-wrap: wrap;
  }

  .ws-team-actions > *,
  .ws-profile-actions > *,
  .ws-bulk-actions > *,
  .ws-create-actions > * {
    min-height: 44px;
  }

  .ws-case-content {
    padding-bottom: 16px;
  }

  .ws-case-timeline-inner,
  .ws-case-composer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ws-case-timeline-track {
    padding-left: 30px;
  }

  .ws-case-timeline-meta,
  .ws-case-timeline-card-sar,
  .ws-case-timeline-card-recheck {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .ws-case-suggestions,
  .ws-suggestions {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: -14px;
    margin-right: -14px;
    padding: 2px 14px 8px;
    scrollbar-width: none;
  }

  .ws-case-suggestions::-webkit-scrollbar,
  .ws-suggestions::-webkit-scrollbar {
    display: none;
  }

  .ws-case-suggestion,
  .ws-suggestion {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .ws-agent-header {
    padding: 12px 14px;
  }

  .ws-agent-header-avatar {
    width: 42px;
    height: 42px;
  }

  .ws-agent-header-role,
  .ws-header-actions .ws-header-btn:disabled {
    display: none;
  }

  .ws-header-actions {
    gap: 4px;
  }

  .ws-header-actions .ws-header-btn {
    min-height: 40px;
    padding: 8px 10px;
  }

  .ws-thread {
    min-height: 0;
    padding: 16px 14px;
  }

  .ws-msg-row,
  .ws-bubble--user {
    max-width: 92%;
  }

  .ws-composer {
    padding: 10px 14px 12px;
  }

  .ws-composer-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .ws-composer-input {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    width: 100%;
  }

  .ws-send-btn {
    grid-column: 2;
    grid-row: 1;
  }

  .ws-composer-tools {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 6px;
  }

  .ws-icon-btn {
    width: 38px;
    height: 38px;
  }
  .ws-case-drawer {
    height: min(92dvh, 100%);
    margin-top: auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .ws-case-drawer-body {
    flex-direction: column;
  }

  .ws-case-drawer-nav {
    width: 100%;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .ws-case-drawer-nav-item {
    width: auto;
    min-width: max-content;
    min-height: 42px;
    margin: 0;
  }

  .ws-case-drawer-content {
    padding: 16px 14px 24px;
  }

  .ws-profile-header {
    padding: 16px 14px 0;
  }

  .ws-profile-hero {
    align-items: flex-start;
  }

  .ws-profile-signout {
    margin-left: 0;
    min-height: 44px;
  }

  .ws-profile-tabs {
    margin-left: -14px;
    margin-right: -14px;
    padding: 0 14px;
    scrollbar-width: none;
  }

  .ws-profile-tab {
    min-height: 44px;
  }

  .ws-profile-toggle-row,
  .ws-profile-card-row,
  .ws-profile-session {
    align-items: flex-start;
  }

  .ws-bulk-panel-head,
  .ws-bulk-actions,
  .ws-create-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ws-bulk-table {
    min-width: 640px;
  }

  .ws-docs-toc {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .ws-docs-toc-label {
    display: none;
  }

  .ws-docs-toc a {
    flex: 0 0 auto;
    min-height: 40px;
    align-items: center;
  }

  .ws-triage-page {
    min-height: 100dvh;
    padding: 20px 12px;
  }

  .ws-triage-phone {
    width: 100%;
    border-width: 4px;
    border-radius: 28px;
  }

  .ws-triage-app {
    min-height: calc(100dvh - 48px);
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .ws-brand-title {
    font-size: 13px;
  }

  .ws-page-header,
  .ws-case-title-row,
  .ws-case-header-actions,
  .ws-profile-hero {
    gap: 8px;
  }

  .ws-case-header-actions > *,
  .ws-case-menu,
  .ws-case-menu-toggle,
  .ws-case-btn-evidence {
    flex: 1 1 auto;
  }

  .ws-case-menu-toggle,
  .ws-case-btn-evidence {
    justify-content: center;
  }

  .ws-case-menu-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }

  .ws-profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 24px;
  }

  .ws-signals-kpi-grid {
    grid-template-columns: 1fr;
  }
}
.ws-demo-link-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.ws-demo-link-arrow {
  margin-left: auto;
  color: #5eead4;
  font-weight: 700;
}
.ws-demo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.ws-rail-public-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 8px;
  font-size: 10.5px;
}
.ws-rail-public-links a {
  color: #64748b;
  text-decoration: none;
}
.ws-rail-public-links a:hover { color: #94a3b8; }
