.demo-shell h4 {
  margin: 12px 0 8px;
  font-size: 0.92rem;
}

.lane-fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 8px;
  margin: 0;
}

.lane-fieldset legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

#google-login {
  margin: 12px 0;
}

#dev-login-btn {
  margin-top: 6px;
}

#demo-live-experts li {
  align-items: flex-start;
}

#demo-live-experts .live-pill {
  margin-top: 4px;
}

.avatar-preview {
  border: 1px dashed var(--line);
  border-radius: 12px;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.avatar-preview img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.pulse-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(47, 178, 106, 0.08);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(47, 178, 106, 0.8);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 178, 106, 0.8); }
  70% { box-shadow: 0 0 0 8px rgba(47, 178, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 178, 106, 0); }
}

.provider-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.provider-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2b3342;
  color: #f5f7fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 auto;
  overflow: hidden;
}

.provider-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hidden {
  display: none;
}

.request-lane-fields {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 8px;
}

.request-lane-fields h4 {
  margin: 0;
}

.lane-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.lane-filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.lane-filter:hover {
  border-color: #4b5567;
  color: #e5e7eb;
}

.lane-filter.is-active {
  border-color: rgba(198, 40, 40, 0.65);
  background: rgba(198, 40, 40, 0.15);
  color: #fecaca;
}

.demo-shell .surface > article > h3,
.demo-shell .surface > article > h4 {
  margin-bottom: 10px;
}

.demo-shell .request-result {
  margin-top: 12px;
}

#demo-live-experts li,
#demo-requests-list li,
#demo-activity-feed li {
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

#demo-live-experts li:hover,
#demo-requests-list li:hover,
#demo-activity-feed li:hover {
  border-color: #4a5568;
  transform: translateY(-1px);
}

.provider-avatar {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.provider-avatar img {
  display: block;
}

.request-lane-fields {
  border-radius: 12px;
}

.request-lane-fields h4 {
  color: #dce5f5;
}

.lane-filter {
  min-height: 34px;
}

.lane-filter.is-active::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
  background: #fca5a5;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
}

.status-dot.live {
  background: var(--green);
}

.status-dot.warn {
  background: var(--amber);
}

.status-dot.off {
  background: #8892a5;
}

.activity-empty,
.live-empty,
.requests-empty {
  color: #cfd7e5;
}

.command-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.workflow-surface .hero-actions {
  margin-top: 10px;
}

.handoff-list {
  margin-top: 10px;
}

.request-actions-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.request-actions-row .ghost-button,
.request-actions-row .solid-button {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.76rem;
}

.request-actions-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.compact-feed {
  margin-top: 10px;
}

.compact-feed li {
  padding: 8px 10px;
}

.toast-stack {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  display: grid;
  gap: 8px;
  width: min(320px, calc(100% - 28px));
}

.toast {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 20, 30, 0.94);
  color: #f3f6fc;
  padding: 9px 11px;
  font-size: 0.82rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.toast.success {
  border-color: rgba(47, 178, 106, 0.55);
}

.toast.warn {
  border-color: rgba(224, 159, 62, 0.62);
}

.toast.error {
  border-color: rgba(198, 40, 40, 0.66);
}

[data-surface-role].is-dimmed {
  opacity: 0.58;
  transition: opacity 140ms ease;
}

[data-surface-role].is-hidden {
  display: none;
}

.reconnect-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reconnect-banner h3 {
  margin: 0 0 4px;
}

.lifecycle-rail {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.lifecycle-step {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #98a4ba;
  background: rgba(255, 255, 255, 0.01);
}

.lifecycle-step.done {
  border-color: rgba(47, 178, 106, 0.45);
  color: #b8f4ce;
  background: rgba(47, 178, 106, 0.12);
}

.lifecycle-step.current {
  border-color: rgba(198, 40, 40, 0.62);
  color: #fecaca;
  background: rgba(198, 40, 40, 0.17);
}

@media (max-width: 720px) {
  .command-strip {
    grid-template-columns: 1fr;
  }

  .lifecycle-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reconnect-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .request-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .request-actions-row .solid-button {
    grid-column: 1 / -1;
  }

  .toast-stack {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 10px;
  }
}
