/* Playbook v2 styles extracted from vitlycare-assistant playbook UI. */
:root {
  --text-strong: var(--text-primary);
  --text-muted: var(--text-tertiary);
  --border-default: var(--border-secondary);
  --border-subtle: var(--border-secondary);
  --surface: var(--bg-primary);
  --radius-panel: var(--radius-page);
  --shadow-panel: var(--shadow-page);
  --assistant-panel-width: 23.25rem;
}
.app-shell__workspace--split .context-assistant-panel {
  flex: 0 0 var(--assistant-panel-width);
  width: var(--assistant-panel-width);
  max-width: var(--assistant-panel-width);
  min-width: 0;
  flex-shrink: 0;
  border-radius: 10px;
}

.app-shell__workspace--split-playbook .app-shell__main {
  flex: 1;
  max-width: none;
}

.app-shell__workspace--split-playbook .context-assistant-panel {
  flex: 0 0 23.25rem;
  max-width: 23.25rem;
}

.assistant-shortcut-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  height: 1.5rem;
  border: 1px solid #f5f5f5;
  border-radius: 0.375rem;
  background: #ffffff;
  padding: 0 0.25rem;
  color: #525252;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.assistant-shortcut-btn:hover {
  background: #fafafa;
}

.assistant-shortcut-btn--active,
.assistant-shortcut-btn[aria-pressed='true'] {
  background: #f5f5f5;
  border-color: #e5e5e5;
}

.assistant-shortcut-btn__icon {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

.assistant-shortcut-btn__keys {
  display: inline-flex;
  align-items: center;
  gap: 0.0625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #525252;
}

.assistant-shortcut-btn__key {
  line-height: 1;
}

/* Playbook page chrome only — do not restyle Inbox / other .app-shell__panel surfaces. */
.app-shell__panel.playbooks-view,
.app-shell__panel.playbook-composer {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.section-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid #d4d4d4;
  border-radius: 0.375rem;
  background: #ffffff;
  padding: 0.1875rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: #0a0a0a;
  transition: background-color 150ms ease;
}

.section-header-btn:hover {
  background: #fafafa;
}

.section-header-btn--active,
.section-header-btn[aria-pressed='true'] {
  background: #f5f5f5;
}

.context-assistant-panel {
  display: flex;
  min-width: 0;
  flex: 0 0 35%;
  max-width: 35%;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-panel);
  border: 1px solid var(--border-default);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.context-assistant-panel__header {
  display: flex;
  height: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #f1f2f4;
  padding: 0 0.75rem;
}

.context-assistant-panel__title {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-strong);
}

.context-assistant-panel__header-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.125rem;
}

.context-assistant-panel__icon-btn,
.context-assistant-panel__close {
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  color: #525252;
  cursor: pointer;
}

.context-assistant-panel__icon-btn:hover,
.context-assistant-panel__close:hover {
  background: #f5f5f5;
}

.context-assistant-panel__header-icon {
  width: 0.875rem;
  height: 0.875rem;
}

.context-assistant-panel__body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}

.context-assistant-panel__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 0.5rem;
  text-align: center;
}

.context-assistant-panel__empty-icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.75rem;
  color: #525252;
}

.context-assistant-panel__empty-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-strong);
}

.context-assistant-panel__empty-copy {
  margin: 0.25rem 0 0;
  font-size: 0.78125rem;
  line-height: 1.25rem;
  color: var(--text-muted);
}

.context-assistant-panel__empty-detail {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: #a3a3a3;
}

.context-assistant-panel__messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.context-assistant-panel__user-row {
  display: flex;
  justify-content: flex-end;
}

.context-assistant-panel__user-bubble {
  max-width: 85%;
  border-radius: 1rem;
  background: #0a0a0a;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: #ffffff;
}

.context-assistant-panel__assistant-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.context-assistant-panel__assistant-row--interactive,
.context-assistant-panel__assistant-row--block {
  align-items: flex-start;
}

.context-assistant-panel__assistant-row--interactive .context-assistant-panel__assistant-mark,
.context-assistant-panel__assistant-row--block .context-assistant-panel__assistant-mark {
  margin-top: 0.625rem;
}

.context-assistant-panel__assistant-mark {
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  color: #525252;
}

.context-assistant-panel__assistant-text {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: var(--text-strong);
}

.context-assistant-panel__thinking {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.71875rem;
  color: #a3a3a3;
}

.context-assistant-panel__assistant-text--error {
  color: #b42318;
}

.context-assistant-panel__live-workspace {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.625rem;
  background: #fafafa;
}

.context-assistant-panel__live-workspace-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.context-assistant-panel__live-workspace-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0a0a0a;
}

.context-assistant-panel__live-workspace-contact {
  font-size: 0.6875rem;
  color: #737373;
}

.context-assistant-panel__live-stage {
  overflow: hidden;
}

.context-assistant-panel__live-stage .live-call-stage__grid {
  grid-template-columns: 1fr;
}

.context-assistant-panel__live-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.context-assistant-panel__live-ended {
  margin: 0;
  font-size: 0.75rem;
  color: #525252;
}

.context-assistant-panel__footer {
  flex-shrink: 0;
  border-top: 1px solid #f1f2f4;
  padding: 0.5rem 0.75rem 0.75rem;
}

.context-assistant-panel__suggestions {
  margin-bottom: 0.5rem;
}

.context-assistant-panel__suggestions-label {
  margin: 0 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.context-assistant-panel__suggestions-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.context-assistant-panel__suggestion {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  padding: 0.375rem 0.375rem;
  text-align: left;
  cursor: pointer;
}

.context-assistant-panel__suggestion:hover {
  background: #fafafa;
}

.context-assistant-panel__suggestion-title {
  font-size: 0.75rem;
  color: var(--text-strong);
}

.context-assistant-panel__suggestion-desc {
  font-size: 0.6875rem;
  line-height: 1rem;
  color: var(--text-muted);
}

.context-assistant-panel__composer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  background: var(--surface);
  padding: 0.5rem;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
}

.context-assistant-panel__composer:focus-within {
  border-color: #0a0a0a;
}

.context-assistant-panel__input {
  width: 100%;
  min-height: 2.75rem;
  resize: none;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: var(--text-strong);
  outline: none;
}

.context-assistant-panel__input::placeholder {
  color: #a3a3a3;
}

.context-assistant-panel__composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.context-assistant-panel__new-chat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  padding: 0.25rem 0.375rem;
  font-size: 0.71875rem;
  color: var(--text-muted);
  cursor: pointer;
}

.context-assistant-panel__new-chat:hover {
  background: #fafafa;
  color: var(--text-strong);
}

.context-assistant-panel__new-chat-icon {
  width: 0.75rem;
  height: 0.75rem;
}

.context-assistant-panel__send {
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9999px;
  background: #e5e7eb;
  color: #a3a3a3;
  cursor: pointer;
}

.context-assistant-panel__send--active {
  background: #2563eb;
  color: #ffffff;
}

.context-assistant-panel__send--active:hover {
  background: #1d4ed8;
}

.context-assistant-panel__send-icon {
  width: 0.75rem;
  height: 0.75rem;
}

.context-assistant-panel__context-line {
  margin: 0.5rem 0 0;
  text-align: right;
  font-size: 0.65625rem;
  font-style: italic;
  color: #a3a3a3;
}

.context-assistant-panel__context-line--warn {
  color: #b45309;
  font-style: normal;
}

.context-assistant-panel--playbook .context-assistant-panel__header {
  padding: 0 1rem;
}

.context-assistant-panel__brand {
  display: flex;
  min-width: 0;  align-items: center;
  gap: 0.375rem;
}

.context-assistant-panel__setup-shell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.context-assistant-panel--flow {
  display: flex;
  flex-direction: column;
}

.context-assistant-panel--flow .call-setup-flow {
  flex: 1;
  min-height: 0;
}

.context-assistant-panel__brand-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #525252;
}

.context-assistant-panel--playbook .context-assistant-panel__body {
  padding: 0.75rem 1rem;
}

.context-assistant-panel--playbook .context-assistant-panel__footer {
  padding: 0.75rem 1rem 1rem;
}

.context-assistant-panel__composer--playbook {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 0.375rem;
  padding: 0.625rem 0.75rem;
  overflow: hidden;
}

.context-assistant-panel__composer--playbook .context-assistant-panel__input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  max-height: 8rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.context-assistant-panel__composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.context-assistant-panel__composer-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.context-assistant-panel__composer-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  color: #525252;
  cursor: pointer;
}

.context-assistant-panel__composer-tool:hover {
  background: #f5f5f5;
}

.context-assistant-panel__send-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 1.5rem;
  border: none;
  border-radius: 0.375rem;
  background: #e5e7eb;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a3a3a3;
  cursor: pointer;
}

.context-assistant-panel__send-btn--active {
  background: #0a0a0a;
  color: #ffffff;
}

.context-assistant-panel__send-btn--active:hover {
  background: #171717;}

@keyframes assistant-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes assistant-typing-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
}

@keyframes assistant-dock-stack-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes assistant-dock-card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.assistant-card__playbook {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  border-radius: 0.375rem;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.25rem 0.5rem;
}

.assistant-card__playbook-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  opacity: 0.55;
}

.assistant-card__playbook-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-strong);
}

.assistant-dashboard__playbook {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  border-radius: 0.375rem;
  background: #ffffff;
  padding: 0.375rem 0.5rem;
}

.playbook-icon,
.assistant-dashboard__playbook-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  opacity: 0.55;
}

.assistant-dashboard__playbook-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-strong);
}

.call-stream__status-dot--ran-playbook,
.call-stream__status-dot--params { background: #171717; }

.playbooks-view {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.playbooks-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #eeeeee;
  padding: 0.625rem 1.25rem;
}

.playbooks-toolbar__left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.playbooks-toolbar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.playbooks-search {
  display: flex;
  width: 14rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #d4d4d4;
  border-radius: 0.375rem;
  background: #ffffff;
  padding: 0.375rem 0.75rem;
  color: #737373;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.playbooks-search input {
  min-width: 0;
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  color: #0a0a0a;
  outline: none;
}

.playbooks-search input::placeholder {
  color: #737373;
}

.playbooks-toolbar-btn,
.playbooks-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid #d4d4d4;
  border-radius: 0.375rem;
  background: #ffffff;
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0a0a0a;
  white-space: nowrap;
}

.playbooks-toolbar-btn:hover,
.playbooks-new-btn:hover {
  background: #fafafa;
}

.playbooks-new-btn {
  border: none;
  background: #0a0a0a;
  color: #ffffff;
}

.playbooks-new-btn:hover {
  background: #171717;
}

.playbooks-new-menu-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  align-items: flex-start;
}

.playbooks-new-menu-item__label {
  font-size: 0.8125rem;
  color: #0a0a0a;
}

.playbooks-new-menu-item__detail {
  font-size: 0.75rem;
  color: #737373;
}

.playbooks-ideas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid #eeeeee;
  padding: 1rem 1.5rem;
}

.playbooks-ideas__heading {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #404040;
}

.playbooks-ideas__heading h2 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
}

.playbooks-ideas__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.playbooks-idea-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 21rem);
  border: 1px solid #f5f5f5;
  border-radius: 0.375rem;
  background: #ffffff;
  padding: 0.625rem;
  text-align: left;
  cursor: pointer;
}

.playbooks-idea-card:hover {
  border-color: #e5e5e5;
  background: #fafafa;
}

.playbooks-idea-card__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.125rem;
}

.playbooks-idea-card__title {
  font-size: 0.75rem;
  font-weight: 500;
  color: #0a0a0a;
}

.playbooks-idea-card__meta {
  font-size: 0.75rem;
  color: #737373;
}

.playbook-doc-thumb {
  position: relative;
  display: flex;
  width: 2.45rem;
  height: 2.5rem;
  flex-shrink: 0;
  flex-direction: column;
  gap: 0.1875rem;
  border: 0.4px solid #7dd3fc;
  border-radius: 0.125rem;
  background: #f0f9ff;
  padding: 0.375rem 0.1875rem;
}

.playbooks-name-cell .playbook-doc-thumb {
  width: 0.75rem;
  height: 0.75rem;
  padding: 0.125rem;
  gap: 0.0625rem;
}

.playbook-doc-thumb__lines,
.playbook-doc-thumb__body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.playbooks-name-cell .playbook-doc-thumb__lines,
.playbooks-name-cell .playbook-doc-thumb__body {
  display: none;
}

.playbooks-name-cell .playbook-doc-thumb::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.0625rem;
  background: linear-gradient(180deg, #c8deed 0%, rgba(200, 222, 237, 0.35) 100%);
}

.playbook-doc-thumb__line {
  display: block;
  height: 0.125rem;
  border-radius: 999px;
  background: #c8deed;
}

.playbook-doc-thumb__line--short {
  width: 62%;
}

.playbook-doc-thumb__line--medium {
  width: 55%;
}

.playbook-doc-thumb__line--fade {
  width: 44%;
  background: rgba(200, 222, 237, 0.58);
}

.playbook-doc-thumb__line--long-fade {
  width: 74%;
  background: rgba(200, 222, 237, 0.3);
}

.playbook-doc-thumb__line--tiny-fade {
  width: 24%;
  background: rgba(200, 222, 237, 0.3);
}

.playbook-doc-thumb__spark {
  position: absolute;
  top: 0.3125rem;
  right: 0.3125rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: #38bdf8;
}

.playbooks-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem;
}

.playbooks-category-tabs__btn {
  display: inline-flex;
  align-items: center;
  height: 1.75rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  padding: 0 0.375rem;
  font-size: 0.75rem;
  color: #737373;
  cursor: pointer;
}

.playbooks-category-tabs__btn--active {
  background: #f5f5f5;
  color: #0a0a0a;
  font-weight: 600;
}

.playbooks-table-wrap {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: auto;
}

.playbooks-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.playbooks-table thead th {
  border-bottom: 1px solid #eeeeee;
  padding: 0.5rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 400;
  color: #737373;
}

.playbooks-table tbody td {
  border-bottom: 1px solid #eeeeee;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  color: #0a0a0a;
  vertical-align: middle;
}

.playbooks-table tbody tr {
  cursor: pointer;
  transition: background-color 150ms ease;
}

.playbooks-table tbody tr:hover {
  background: #fafafa;
}

.playbooks-table tbody tr.playbooks-table__row--archived {
  opacity: 0.62;
}

.playbooks-table tbody tr.playbooks-table__row--archived td {
  color: var(--text-tertiary);
}

.playbooks-table thead th.playbooks-table__name,
.playbooks-table tbody td.playbooks-table__name {
  padding-left: 1.5rem;
}

.playbooks-table__name {
  width: 34%;
}

.playbooks-table__metrics {
  width: 18%;
}

.playbooks-table .playbooks-table__author {
  width: 4.5rem;
}

.playbooks-table .playbooks-table__date {
  width: 9.5rem;
}

.playbooks-table__actions {
  width: 3rem;
  padding-right: 1.5rem !important;
}

.playbooks-name-cell,
.playbooks-author-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.playbooks-table__truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playbook-metric-chips {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.playbook-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  height: 1rem;
  border-radius: 0.375rem;
  background: #f5f5f5;
  padding: 0 0.1875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #737373;
}

.playbook-metric-chip--icon-only {
  padding: 0 0.1875rem;
}

.playbook-author-avatar {
  display: inline-flex;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #ffffff;
}

.playbook-author-avatar--cyan {
  background: #0891b2;
}

.playbook-author-avatar--blue {
  background: #2563eb;
}

.playbook-composer {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.playbook-composer__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e5e5e5;
  padding: 0.75rem 1.25rem;
}

.playbook-composer__breadcrumb {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
}

.playbook-composer__crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #525252;
  text-decoration: none;
}

.playbook-composer__crumb:hover {
  color: #0a0a0a;
}

.playbook-composer__crumb--current {
  min-width: 0;
  font-weight: 500;
  color: #404040;
}

.playbook-composer__crumb--current .playbook-doc-thumb {
  width: 0.75rem;
  height: 0.75rem;
  padding: 0.125rem;
}

.playbook-composer__crumb--current .playbook-doc-thumb__lines,
.playbook-composer__crumb--current .playbook-doc-thumb__body {
  display: none;
}

.playbook-composer__crumb--current .playbook-doc-thumb::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.0625rem;
  background: linear-gradient(180deg, #c8deed 0%, rgba(200, 222, 237, 0.35) 100%);
}

.playbook-composer__crumb-sep {
  flex-shrink: 0;
  color: #a3a3a3;
  transform: rotate(-90deg);
}

.playbook-composer__topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.playbook-composer__publish-btn {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  border: none;
  border-radius: 0.375rem;
  background: #0a0a0a;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #ffffff;
}

.playbook-composer__publish-btn:disabled {
  background: rgba(0, 0, 0, 0.3);
  cursor: not-allowed;
}

.playbook-composer__publish-btn:not(:disabled):hover {
  background: #171717;
}

.playbook-composer__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  color: #404040;
}

.playbook-composer__menu-btn:hover {
  background: #f5f5f5;
}

.playbook-composer__scroll {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: auto;
}

.playbook-composer__intro {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  border-bottom: 1px solid #eeeeee;
  padding: 1.5rem;
}

.playbook-composer__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.playbook-composer__title-input {
  min-width: 0;
  flex: 1;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.75rem;
  color: #404040;
  outline: none;
}

.playbook-composer__title-input::placeholder {
  color: #737373;
}

.playbook-composer__permissions-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  color: #737373;
  white-space: nowrap;
}

.playbook-composer__permissions-link:hover {
  color: #404040;
}

.playbook-composer__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.playbook-composer__meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.playbook-composer__meta-label {
  font-size: 0.8125rem;
  color: #737373;
}

.playbook-composer__author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #0a0a0a;
}

.playbook-composer__badge {
  display: inline-flex;
  align-items: center;
  height: 1.375rem;
  border-radius: 0.25rem;
  background: #f5f5f5;
  padding: 0 0.5rem 0 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #737373;
}

.playbook-composer__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  color: #737373;
}

.playbook-composer__icon-btn:hover {
  background: #f5f5f5;
  color: #404040;
}

.playbook-composer__sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
}

.playbook-composer__section {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.playbook-composer__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.playbook-composer__section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #0a0a0a;
}

.playbook-composer__section-title--strong {
  font-weight: 500;
}

.playbook-composer__hint {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.3);
}

.playbook-composer__lock-note {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: rgba(0, 0, 0, 0.3);
}

.playbook-composer__lock-note-action {
  display: inline;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: #404040;
  text-decoration: underline;
  text-underline-offset: 0.125rem;
  cursor: pointer;
}

.playbook-composer__lock-note-action:hover {
  color: #0a0a0a;
}

.playbook-composer__field {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.5rem 0;
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: #0a0a0a;
  resize: none;
  outline: none;
}

.playbook-composer__field::placeholder {
  color: #a3a3a3;
}

.playbook-composer__steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.playbook-composer__step {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
}

.playbook-composer__step-index {
  flex-shrink: 0;
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  color: #a3a3a3;
}

.playbook-composer__step-body {
  position: relative;
  min-width: 0;
  flex: 1;
}

.playbook-composer__field--step {
  position: relative;
  z-index: 1;
  min-height: 2.5rem;
  background: transparent;
}

.playbook-composer__field--rich {
  position: relative;
  z-index: 1;
  min-height: 2.25rem;
  padding: 0.5rem 0;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: text;
}

.playbook-composer__field--rich:focus {
  outline: none;
}

.playbook-composer__step-placeholder {
  position: absolute;
  inset: 0.5rem 0 auto 0;
  z-index: 0;
  min-width: 0;
  pointer-events: none;
}

.playbook-composer__step-placeholder--plain {
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: #a3a3a3;
}

.pb-mention {
  display: inline;
  border-radius: 0.3125rem;
  padding: 0.0625rem 0.25rem;
  font-weight: 500;
  white-space: nowrap;
}

.pb-mention--hash {
  background: #eff6ff;
  color: #2563eb;
}

.pb-mention--at {
  background: #f5f3ff;
  color: #7c3aed;
}

.playbook-mention-menu__hint {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.375rem;
  border-bottom: 1px solid #f1f2f4;
  padding: 0.5rem 0.625rem;
  font-size: 0.75rem;
  color: #737373;
}

.playbook-mention-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.25rem;
  background: #f5f5f5;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0a0a0a;
}

.playbook-action-list__item-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.playbook-action-list__item-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6875rem;
  line-height: 1rem;
  color: #a3a3a3;
}

.playbook-composer__instruction-placeholder {
  position: absolute;
  inset: 0.5rem 0 auto 0;
  z-index: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  pointer-events: none;
}

.playbook-composer__instruction-placeholder ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.playbook-composer__instruction-placeholder li {
  display: inline;
  font-size: 0.8125rem;
  color: #a3a3a3;
}

.playbook-composer__placeholder-text {
  font-size: 0.8125rem;
  color: #a3a3a3;
}

.playbook-composer__inline-tag {
  display: inline-flex;
  align-items: center;
  height: 1.375rem;
  border-radius: 0.25rem;
  background: #f5f5f5;
  padding: 0 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #737373;
}

.playbook-composer__add-step {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.2);
}

.playbook-composer__add-step:hover {
  color: rgba(0, 0, 0, 0.45);
}

.playbook-composer__menu-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  font-size: 0.8125rem;
}

.playbook-composer__menu-item--danger {
  color: inherit;
}

.playbook-action-picker {
  position: fixed;
  z-index: 120;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  background: #ffffff;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

.playbook-action-picker__header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.375rem;
  border-bottom: 1px solid #f1f2f4;
  padding: 0.5rem;
}

.playbook-action-picker__search-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: #737373;
}

.playbook-action-picker__search-input {
  min-width: 0;
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: #0a0a0a;
  outline: none;
}

.playbook-action-picker__search-input::placeholder {
  color: #a3a3a3;
}

.playbook-action-picker__close {
  display: flex;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  color: #737373;
  cursor: pointer;
}

.playbook-action-picker__close:hover {
  background: #fafafa;
  color: #0a0a0a;
}

.playbook-action-picker__body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 0.375rem 0.5rem;
}

.playbook-action-list {
  display: flex;
  flex-direction: column;
}

.playbook-action-list__empty {
  margin: 0;
  padding: 2rem 0.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #737373;
}

.playbook-action-list__group + .playbook-action-list__group {
  margin-top: 0.25rem;
}

.playbook-action-list__group-title {
  margin: 0;
  padding: 0.75rem 0.5rem 0.25rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.playbook-action-list__items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.playbook-action-list__item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.375rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  padding: 0.375rem 0.5rem;
  text-align: left;
  cursor: pointer;
}

.playbook-action-list__item:hover {
  background: #fafafa;
}

.playbook-action-list__item--static {
  cursor: default;
}

.playbook-action-list__item--static:hover {
  background: transparent;
}

.playbook-action-list__item-icon-wrap {
  display: flex;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
}

.playbook-action-list__icon {
  width: 0.875rem;
  height: 0.875rem;
}

.playbook-action-list__item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0a0a0a;
}

.playbook-action-list__item-label--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.78125rem;
  font-weight: 400;
}

.playbook-actions-glossary {
  max-width: 28rem;
}

.playbook-actions-glossary__search-wrap {
  position: relative;
  margin: 0 1.5rem 0.75rem;
}

.playbook-actions-glossary__search-icon {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  width: 0.875rem;
  height: 0.875rem;
  transform: translateY(-50%);
  color: #737373;
  pointer-events: none;
}

.playbook-actions-glossary__search-input {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: #0a0a0a;
  outline: none;
}

.playbook-actions-glossary__search-input:focus {
  border-color: #0a0a0a;
}

.playbook-actions-glossary__search-input::placeholder {
  color: #a3a3a3;
}

.playbook-actions-glossary__body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  border-top: 1px solid #f1f2f4;
  padding: 0.25rem 1rem 1.25rem;
}

.playbooks-table__author .playbooks-table__truncate {
  color: #737373;
}

.playbooks-table__date {
  color: #737373;
}

.pb-assist__empty {
  gap: 8px;
  padding: 8px 0;
  min-height: 17.875rem;
  justify-content: center;
}

.pb-assist__tabs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #f5f5f5;
  padding: 0 1rem;
}

.pb-assist__tab {
  display: inline-flex;
  height: 2rem;
  align-items: center;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0 0.125rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.125rem;
  color: #737373;
  cursor: pointer;
}

.pb-assist__tab--active {
  border-bottom-color: #0a0a0a;
  font-weight: 600;
  color: #0a0a0a;
}

.pb-assist__ideas {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pb-assist__ideas-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.pb-assist__last-run {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0.625rem 0 0;
  font-size: 0.6875rem;
  line-height: 1rem;
  color: #a3a3a3;
}

.pb-assist__last-run--muted {
  color: #c4c4c4;
}

.pb-assist__last-run-status {
  border-radius: 9999px;
  background: #f5f5f5;
  padding: 0.0625rem 0.375rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #737373;
}

.pb-assist__last-run-status--success {
  background: #f0fdf4;
  color: #15803d;
}

.pb-assist__last-run-status--partial {
  background: #fffbeb;
  color: #a16207;
}

.pb-assist__last-run-status--failed {
  background: #fef2f2;
  color: #b91c1c;
}

.pb-assist__suggestions {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0;
}

.pb-assist__suggestion {
  width: 100%;
  border: 1px solid #ebebeb;
  border-radius: 0.625rem;
  background: #ffffff;
  padding: 0.625rem 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: #404040;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.pb-assist__suggestion:hover {
  border-color: #d4d4d4;
  background: #fafafa;
  color: #0a0a0a;
}

.context-assistant-panel--playbook .context-assistant-panel__user-bubble {
  max-width: 92%;
  border-radius: 0.75rem 0.75rem 0.125rem 0.75rem;
  background: #f5f5f5;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.125rem;
  color: #0a0a0a;
}

.context-assistant-panel--playbook .context-assistant-panel__assistant-text {
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: #404040;
}

.context-assistant-panel--playbook {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 10px;
  border-color: #e5e5e5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.context-assistant-panel--playbook .context-assistant-panel__header-actions {
  gap: 8px;
}

.context-assistant-panel--playbook .context-assistant-panel__icon-btn,
.context-assistant-panel--playbook .context-assistant-panel__close {
  width: 20px;
  height: 20px;
  border-radius: 0.25rem;
}

.context-assistant-panel--playbook .context-assistant-panel__brand:hover {
  background: transparent;
}

.context-assistant-panel--playbook .context-assistant-panel__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

.context-assistant-panel--playbook .context-assistant-panel__header-icon {
  width: 14px;
  height: 14px;
}

.context-assistant-panel--playbook .context-assistant-panel__empty {
  padding: 0;
}

.context-assistant-panel--playbook .context-assistant-panel__empty-icon {
  width: 16px;
  height: 16px;
  margin-bottom: 0;
  color: #525252;
}

.context-assistant-panel--playbook .context-assistant-panel__empty-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: #171717;
}

.context-assistant-panel--playbook .context-assistant-panel__empty-copy {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 18px;
  color: #a3a3a3;
}

.context-assistant-panel__composer--playbook:focus-within {
  border-color: transparent;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 0 0 2px #ffffff,
    0 0 0 3px rgba(44, 44, 44, 0.48);
}

.context-assistant-panel--playbook .context-assistant-panel__composer-toolbar {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 24px;
  flex-shrink: 0;
  gap: 0.25rem;
}

.context-assistant-panel--playbook .context-assistant-panel__composer-toolbar-right {
  flex-shrink: 0;
  gap: 0.25rem;
}

.context-assistant-panel--playbook .context-assistant-panel__send-btn {
  box-sizing: border-box;
  flex-shrink: 0;
  height: 24px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 24px;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.context-assistant-panel--playbook .context-assistant-panel__send-btn:not(.context-assistant-panel__send-btn--active) {
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  cursor: default;
}

.context-assistant-panel--playbook .context-assistant-panel__send-btn--active {
  background: #0a0a0a;
  cursor: pointer;
}

.context-assistant-panel--playbook .context-assistant-panel__send-btn--active:hover {
  background: #171717;
}

.pb-assist__think {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.375rem;
}

.pb-assist__think-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.pb-assist__think-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: none;
  border-radius: 9999px;
  background: #ffffff;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: #737373;
  cursor: pointer;
}

.pb-assist__think-pill:hover {
  background: #fafafa;
}

.pb-assist__think-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  color: #525252;
  cursor: pointer;
}

.pb-assist__think-head:hover {
  background: #fafafa;
}

.pb-assist__chevron {
  flex-shrink: 0;
  color: #a3a3a3;
  transition: transform 0.15s ease;
}

.pb-assist__chevron--closed {
  transform: rotate(-90deg);
}

.pb-assist__think-count {
  flex-shrink: 0;
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: #737373;
}

.pb-assist__grip {
  display: inline-grid;
  grid-template-columns: repeat(3, 0.15625rem);
  gap: 0.078125rem;
}

.pb-assist__grip-dot {
  width: 0.15625rem;
  height: 0.15625rem;
  border-radius: 0.03125rem;
  background: #d9d9d9;
}

.pb-assist__grip-dot--dark {
  background: #525252;
}

.pb-assist__grip-dot--muted {
  background: rgba(82, 82, 82, 0.41);
}

.pb-assist__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: #ffffff;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: #737373;
}

.pb-assist__think-steps {
  margin: 0;
  list-style: none;
  border-top: 1px solid #f1f2f4;
  background: #fcfcfc;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.pb-assist__think-step {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.15rem;
  color: #404040;
}

.pb-assist__think-num {
  flex-shrink: 0;
  color: #a3a3a3;
  font-variant-numeric: tabular-nums;
}

.pb-assist__build {
  border: 1px solid #e8e8ea;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  padding: 0.75rem;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
}

.pb-assist__build-head {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.pb-assist__build-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
  border-radius: 0.375rem;
  background: #0a0a0a;
  color: #ffffff;
}

.pb-assist__build-mark .context-assistant-panel__assistant-mark {
  color: #ffffff;
  width: 0.75rem;
  height: 0.75rem;
}

.pb-assist__build-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.0625rem;
}

.pb-assist__build-title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25rem;
  color: #0a0a0a;
}

.pb-assist__build-live {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6875rem;
  line-height: 1rem;
  color: #737373;
}

.pb-assist__build-count {
  margin-left: auto;
  border-radius: 9999px;
  background: #f5f5f5;
  padding: 0.125rem 0.4375rem;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  color: #525252;
}

.pb-assist__build-steps {
  margin: 0.75rem 0 0;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.pb-assist__build-step {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  min-height: 1.75rem;
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: #737373;
}

.pb-assist__build-step--done {
  color: #171717;
}

.pb-assist__build-step--running {
  color: #0a0a0a;
  font-weight: 500;
}

.pb-assist__build-rail {
  position: relative;
  display: inline-flex;
  width: 1.25rem;
  flex-shrink: 0;
  justify-content: center;
  padding-top: 0.0625rem;
}

.pb-assist__build-rail-line {
  position: absolute;
  top: 1.125rem;
  bottom: -0.125rem;
  left: 50%;
  width: 1px;
  background: #e5e5e5;
  transform: translateX(-50%);
}

.pb-assist__build-step--done .pb-assist__build-rail-line,
.pb-assist__build-step--running .pb-assist__build-rail-line {
  background: #d4d4d4;
}

.pb-assist__build-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
}

.pb-assist__build-step--queued .pb-assist__build-icon {
  border-color: #e5e5e5;
  background: #ffffff;
  color: #737373;
}

.pb-assist__build-step--running .pb-assist__build-icon {
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #ffffff;
}

.pb-assist__build-step--done .pb-assist__build-icon {
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #ffffff;
}

.pb-assist__build-index {
  font-size: 0.625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pb-assist__build-text {
  padding-top: 0.125rem;
  padding-bottom: 0.5rem;
}

.pb-assist__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: #d4d4d4;
}

.pb-assist__spin {
  animation: pb-assist-spin 0.7s linear infinite;
}

.pb-assist__history {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem 0.125rem 1rem;
}

.pb-assist__history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pb-assist__history-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #737373;
}

.pb-assist__history-new {
  border: none;
  border-radius: 9999px;
  background: #0a0a0a;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
}

.pb-assist__history-empty {
  margin: 0;
  font-size: 0.8125rem;
  color: #737373;
}

.pb-assist__history-list {
  margin: 0;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.pb-assist__history-item {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.125rem;
  border: 1px solid #ebebeb;
  border-radius: 0.625rem;
  background: #ffffff;
  padding: 0.625rem 0.75rem;
  text-align: left;
  cursor: pointer;
}

.pb-assist__history-item:hover {
  border-color: #d4d4d4;
  background: #fafafa;
}

.pb-assist__history-item--active {
  border-color: #0a0a0a;
  background: #fafafa;
}

.pb-assist__history-item-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0a0a0a;
}

.pb-assist__history-item-meta {
  font-size: 0.6875rem;
  color: #a3a3a3;
}

@keyframes pb-assist-spin {
  to {
    transform: rotate(360deg);
  }
}

.pb-assist__qcard {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.625rem;
  background: #ffffff;
  padding: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

.pb-assist__qcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.pb-assist__qcard-title {
  margin: 0;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0a0a0a;
}

.pb-assist__qcard-pager {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.125rem;
}

.pb-assist__pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border: none;
  background: transparent;
  color: #737373;
  cursor: pointer;
}

.pb-assist__pager-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.pb-assist__pager-label {
  font-size: 0.75rem;
  color: #737373;
  white-space: nowrap;
}

.pb-assist__qlist {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  border-radius: 0.375rem;
  overflow: hidden;
}

.pb-assist__qopt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: none;
  border-bottom: 1px solid #f1f2f4;
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  text-align: left;
  cursor: pointer;
}

.pb-assist__qopt:last-child {
  border-bottom: none;
}

.pb-assist__qopt:hover {
  background: #fafafa;
}

.pb-assist__qopt--active {
  background: #f5f5f5;
}

.pb-assist__qopt-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pb-assist__qopt-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: #0a0a0a;
}

.pb-assist__qopt-desc {
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: #737373;
}

.pb-assist__qnum {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 0.25rem;
  background: #f5f5f5;
  font-size: 0.75rem;
  font-weight: 500;
  color: #737373;
}

.pb-assist__qnum--active {
  background: #0a0a0a;
  color: #ffffff;
}

.pb-assist__qcustom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
}

.pb-assist__qcustom-input {
  min-width: 0;
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  color: #0a0a0a;
  outline: none;
}

.pb-assist__qcustom-input::placeholder {
  color: #a3a3a3;
}

.pb-assist__qcustom-send {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 9999px;
  background: #e5e7eb;
  color: #ffffff;
  cursor: pointer;
}

.pb-assist__qcustom-send--active {
  background: #0ea5e9;
}

.pb-assist__plan-summary {
  border: 1px solid #f1f2f4;
  border-radius: 0.625rem;
  background: #fafafa;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.pb-assist__plan-summary-head {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #059669;
}

.pb-assist__plan-summary-row {
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
}

.pb-assist__plan-summary-q {
  font-size: 0.6875rem;
  color: #737373;
}

.pb-assist__plan-summary-a {
  font-size: 0.75rem;
  color: #0a0a0a;
}

.playbooks-toolbar-btn--active {
  background: #f5f5f5;
  color: #0a0a0a;
}

.playbooks-toolbar-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background: #0a0a0a;
  padding: 0 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: #ffffff;
}

.playbooks-filter-menu {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.25rem 0;
}

.playbooks-filter-menu__label {
  margin: 0.5rem 0.75rem 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.playbooks-filter-menu__label:first-child {
  margin-top: 0.25rem;
}

.playbooks-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0 1.5rem 0.5rem;
}

.playbooks-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
  background: #ffffff;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  color: #404040;
  cursor: pointer;
}

.playbooks-filter-chip:hover {
  background: #fafafa;
}

.playbooks-table__name-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.125rem;
}

.playbooks-table__subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6875rem;
  color: #a3a3a3;
}

.playbooks-empty-clear {
  margin-top: 0.75rem;
  border: none;
  border-radius: 9999px;
  background: #0a0a0a;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
}

.playbooks-category-tabs-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.25rem;
}

.playbooks-category-tabs__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  padding: 0;
  color: #a3a3a3;
  cursor: pointer;
}

.playbooks-category-tabs__add:hover {
  background: #f5f5f5;
  color: #525252;
}

.playbooks-tag-create {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
}

.playbooks-tag-create__label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.playbooks-tag-create__input {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 0.375rem;
  background: #ffffff;
  padding: 0.375rem 0.5rem;
  font-size: 0.8125rem;
  color: #0a0a0a;
  outline: none;
}

.playbooks-tag-create__input:focus {
  border-color: #a3a3a3;
}

.playbooks-tag-create__submit {
  align-self: flex-end;
  border: none;
  border-radius: 0.375rem;
  background: #0a0a0a;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
}

.playbooks-tag-create__submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.playbooks-table thead th.playbooks-table__metrics,
.playbooks-table tbody td.playbooks-table__metrics {
  padding-left: 2.5rem;
  padding-right: 2rem;
}

.playbooks-table thead th.playbooks-table__author,
.playbooks-table tbody td.playbooks-table__author {
  width: 4.5rem;
  padding-left: 1rem;
  padding-right: 0.75rem;
  overflow: hidden;
}

.playbooks-table thead th.playbooks-table__date,
.playbooks-table tbody td.playbooks-table__date {
  padding-left: 1rem;
  padding-right: 1.5rem;
  overflow: hidden;
}

.playbooks-table thead th.playbooks-table__actions {
  text-align: right;
}

.playbook-metric-chips .inbox-attention-tooltip-anchor,
.playbooks-table__author .inbox-attention-tooltip-anchor {
  display: inline-flex;
}

.playbook-publish-toast {
  position: fixed;
  bottom: 34px;
  left: 50%;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  transform: translateX(-50%);
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0 0.875rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.12),
    0 2px 4px -2px rgba(0, 0, 0, 0.08),
    0 12px 24px -4px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
  color: #0a0a0a;
  white-space: nowrap;
}

.playbook-publish-toast__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.playbook-composer__versions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 1.5rem;
  border: none;
  border-radius: 0.375rem;
  background: #f5f5f5;
  padding: 0 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: #737373;
  cursor: pointer;
}

.playbook-composer__versions-btn:hover {
  background: #eeeeee;
  color: #525252;
}

.playbook-composer__scroll--reviewing {
  padding-bottom: 5.5rem;
}

.playbook-composer__box {
  display: block;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: #0a0a0a;
  resize: none;
  outline: none;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}

.playbook-composer__box::placeholder {
  font-weight: 400;
  color: #a3a3a3;
}

.playbook-composer__box--trigger {
  background: #f0f9ff;
}

.playbook-composer__box--conditions {
  background: #f5f5f5;
}

.playbook-composer__box--static {
  min-height: 2.25rem;
}

.playbook-trigger-picker {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: none;
  border-radius: 5px;
  background: #f0f9ff;
  padding: 0.5rem 0.75rem;
  min-height: 2.25rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0a0a0a;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.playbook-trigger-picker:hover:not(:disabled) {
  background: #e0f2fe;
}

.playbook-trigger-picker:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.playbook-trigger-picker--placeholder {
  color: #a3a3a3;
  font-weight: 400;
}

.playbook-trigger-picker__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playbook-trigger-picker__chevron {
  flex-shrink: 0;
  color: #737373;
}

.playbook-trigger-picker__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0.25rem;
  padding: 0.375rem 0.5rem 0.5rem;
  color: #a3a3a3;
}

.playbook-trigger-picker__search input {
  min-width: 0;
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  color: #0a0a0a;
  outline: none;
}

.playbook-trigger-picker__search input::placeholder {
  color: #a3a3a3;
}

.playbook-trigger-picker__empty {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: #a3a3a3;
}

.playbook-trigger-picker__option {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.125rem;
}

.playbook-trigger-picker__option-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0a0a0a;
}

.playbook-trigger-picker__option-description {
  font-size: 0.75rem;
  font-weight: 400;
  color: #a3a3a3;
}

.playbook-condition-builder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  border-radius: 5px;
  background: #f5f5f5;
  padding: 0.5rem 0.75rem;
  min-height: 2.25rem;
}

.playbook-condition-builder--disabled {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #a3a3a3;
}

.playbook-condition-builder__add {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border: 1px dashed #d4d4d4;
  border-radius: 5px;
  background: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #737373;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.playbook-condition-builder__add:hover:not(:disabled) {
  border-color: #a3a3a3;
  color: #0a0a0a;
  background: #fafafa;
}

.playbook-condition-builder__add:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.playbook-condition-builder__field {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  background: #ffffff;
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0a0a0a;
  cursor: pointer;
}

.playbook-condition-builder__field:hover {
  background: #fafafa;
}

.playbook-condition-builder__op {
  display: inline-flex;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  overflow: hidden;
}

.playbook-condition-builder__op-btn {
  border: none;
  background: #ffffff;
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #737373;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.playbook-condition-builder__op-btn:not(:last-child) {
  border-right: 1px solid #e5e5e5;
}

.playbook-condition-builder__op-btn--active {
  background: #0a0a0a;
  color: #ffffff;
}

.playbook-condition-builder__value {
  min-width: 8rem;
  flex: 1;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  background: #ffffff;
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  color: #0a0a0a;
  outline: none;
}

.playbook-condition-builder__value::placeholder {
  color: #a3a3a3;
}

.playbook-condition-builder__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 5px;
  background: transparent;
  width: 1.75rem;
  height: 1.75rem;
  color: #a3a3a3;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.playbook-condition-builder__remove:hover:not(:disabled) {
  background: #e5e5e5;
  color: #0a0a0a;
}

.playbook-composer__step-body > .playbook-composer__field--rich,
.playbook-composer__step-body > .playbook-composer__step-placeholder,
.playbook-composer__step-body > .playbook-composer__instruction-placeholder {
  grid-column: 1;
  grid-row: 1;
}

.playbook-composer__step-remove {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.375rem;
  background: #ffffff;
  color: #a3a3a3;
  cursor: pointer;
}

.playbook-composer__step-remove:hover {
  border-color: #fecaca;
  background: #fef2f2;
  color: #dc2626;
}

.playbook-composer__badge--published {
  background: #ecfdf5;
  color: #059669;
}

.playbook-composer__badge--propose {
  background: #fff7ed;
  color: #c2410c;
}

.playbook-composer__badge--fork {
  background: #f5f5f5;
  color: #525252;
}

.playbook-composer__title-input--readonly {
  cursor: default;
}

.playbook-access-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.75rem 1.25rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  background: #fafafa;
  padding: 0.75rem 0.875rem;
}

.playbook-access-banner p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: #525252;
}

.playbook-access-banner--propose {
  border-color: #fed7aa;
  background: #fff7ed;
}

.playbook-access-banner__action {
  flex-shrink: 0;
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
  background: #ffffff;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #404040;
  cursor: pointer;
}

.playbook-review-queue {
  margin: 0 1.25rem 0.75rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.75rem 0.875rem;
}

.playbook-review-queue__title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0a0a0a;
}

.playbook-review-queue__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.playbook-review-queue__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.playbook-review-queue__item + .playbook-review-queue__item {
  border-top: 1px solid #f5f5f5;
}

.playbook-review-queue__summary {
  margin: 0;
  font-size: 0.75rem;
  color: #0a0a0a;
}

.playbook-review-queue__meta {
  margin: 0.125rem 0 0;
  font-size: 0.6875rem;
  color: #737373;
}

.playbook-review-queue__review-btn {
  flex-shrink: 0;
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
  background: #ffffff;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #0a0a0a;
  cursor: pointer;
}

.playbook-permissions-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.35);
  padding: 1rem;
}

.playbook-permissions-modal {
  width: min(520px, 100%);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.playbook-permissions-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #eeeeee;
  padding: 1rem 1.125rem;
}

.playbook-permissions-modal__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0a0a0a;
}

.playbook-permissions-modal__subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: #737373;
}

.playbook-permissions-modal__close {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: #525252;
  cursor: pointer;
}

.playbook-permissions-modal__body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.125rem;
}

.playbook-permissions-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  border-top: 1px solid #eeeeee;
  padding: 0.875rem 1.125rem;
}

.playbook-permissions-modal__btn {
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
  background: #ffffff;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #404040;
  cursor: pointer;
}

.playbook-permissions-modal__btn--primary {
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #ffffff;
}

.playbook-permissions-section + .playbook-permissions-section {
  margin-top: 1rem;
}

.playbook-permissions-section__label {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #737373;
}

.playbook-permissions-section__hint {
  margin: 0.375rem 0 0;
  font-size: 0.6875rem;
  color: #737373;
}

.playbook-permissions-scope-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.playbook-permissions-scope {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.625rem 0.75rem;
  text-align: left;
  cursor: pointer;
}

.playbook-permissions-scope--active {
  border-color: #0a0a0a;
  background: #fafafa;
}

.playbook-permissions-scope__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0a0a0a;
}

.playbook-permissions-scope__detail {
  font-size: 0.6875rem;
  line-height: 1rem;
  color: #737373;
}

.playbook-permissions-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.playbook-permissions-pill {
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
  background: #ffffff;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #404040;
  cursor: pointer;
}

.playbook-permissions-pill--active {
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #ffffff;
}

.playbook-permissions-select {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 0.375rem;
  background: #ffffff;
  padding: 0.5rem 0.625rem;
  font-size: 0.8125rem;
  color: #0a0a0a;
}

.playbook-permissions-editors {
  margin: 0;
  padding: 0;
  list-style: none;
}

.playbook-permissions-editor {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #eeeeee;
  border-radius: 0.375rem;
  background: #ffffff;
  padding: 0.5rem 0.625rem;
  text-align: left;
  cursor: pointer;
}

.playbook-permissions-editor--selected {
  border-color: #0a0a0a;
  background: #fafafa;
}

.playbook-permissions-editor__name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0a0a0a;
}

.playbook-permissions-editor__role {
  margin-left: auto;
  font-size: 0.6875rem;
  color: #737373;
  text-transform: capitalize;
}

.playbook-permissions-editor__check {
  color: #059669;
}

.playbook-composer__autosave {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-right: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a3a3a3;
  white-space: nowrap;
}

.playbook-composer__autosave--saving {
  color: #737373;
}

.playbook-mention-tooltip {
  width: auto;
  max-width: 260px;
}

.playbook-composer__field--static {
  margin: 0;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: #0a0a0a;
  white-space: pre-wrap;
}

.playbook-composer__step-body--static {
  margin: 0;
  min-width: 0;
  flex: 1;
  padding-top: 0.125rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: #0a0a0a;
}

.playbook-parts {
  white-space: pre-wrap;
}

.playbook-diff {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
  padding-top: 0.125rem;
}

.playbook-diff__lines {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.playbook-diff__line {
  margin: 0;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.35rem;
}

.playbook-diff__line--add {
  background: #ecfdf5;
  color: #047857;
}

.playbook-diff__line--remove {
  background: #fef2f2;
  color: #b91c1c;
  text-decoration: line-through;
  text-decoration-color: rgba(185, 28, 28, 0.55);
}

.playbook-diff__line--add .pb-mention,
.playbook-diff__line--remove .pb-mention {
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.playbook-diff__controls {
  display: inline-flex;
  flex-shrink: 0;
  gap: 0.25rem;
  padding-top: 0.0625rem;
}

.playbook-diff__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.375rem;
  background: #ffffff;
  color: #737373;
  cursor: pointer;
}

.playbook-diff__icon-btn:hover {
  background: #fafafa;
}

.playbook-diff__icon-btn--accept {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #059669;
}

.playbook-diff__icon-btn--accept:hover {
  background: #d1fae5;
}

.playbook-diff__icon-btn--reject:hover {
  border-color: #fecaca;
  background: #fef2f2;
  color: #dc2626;
}

.playbook-composer__step--added .playbook-composer__step-index {
  color: #059669;
}

.playbook-change-bar {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 22rem;
  max-width: calc(100% - 3rem);
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.playbook-change-bar__count {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #525252;
}

.playbook-change-bar__actions {
  display: inline-flex;
  gap: 0.5rem;
}

.playbook-change-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #404040;
  cursor: pointer;
}

.playbook-change-bar__btn:hover {
  background: #fafafa;
}

.playbook-change-bar__btn--primary {
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #ffffff;
}

.playbook-change-bar__btn--primary:hover {
  background: #262626;
}

.playbook-action-list--dictionary .playbook-action-list__group + .playbook-action-list__group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f2f4;
}

.playbook-action-list__dict-entry {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.625rem 0;
}

.playbook-action-list__dict-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.playbook-action-list__term {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: #0a0a0a;
}

.playbook-action-list__definition {
  margin: 0;
  padding-left: 1.75rem;
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: #525252;
}

.playbook-history-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 3.25rem 1rem 1.5rem;
  background: rgba(10, 10, 10, 0.06);
}

.playbook-history-toasts {
  display: flex;
  width: min(20rem, calc(100vw - 2rem));
  max-height: calc(100vh - 4.5rem);
  flex-direction: column;
}

.playbook-history-toasts__chrome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
  padding: 0 0.125rem;
}

.playbook-history-toasts__heading {
  min-width: 0;
}

.playbook-history-toasts__title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #737373;
}

.playbook-history-toasts__subtitle {
  margin: 0.125rem 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: #a3a3a3;
}

.playbook-history-toasts__close {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  color: #525252;
  cursor: pointer;
}

.playbook-history-toasts__close:hover {
  background: #ffffff;
}

.playbook-history-toasts__empty {
  margin: 0;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: #737373;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 16px 32px rgba(0, 0, 0, 0.08);
}

.playbook-history-toasts__stack {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow-x: visible;
  overflow-y: auto;
  padding: 0.125rem 0 1rem;
}

.playbook-history-toast {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: -4.5rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(1.35);
  padding: 0.75rem 0.875rem;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.6) inset,
    0 2px 6px rgba(0, 0, 0, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.1);
  transition:
    margin-top 0.24s ease,
    transform 0.24s ease,
    box-shadow 0.24s ease;
  transform: scale(0.98);
  transform-origin: top center;
}

.playbook-history-toast:first-child {
  margin-top: 0;
  transform: none;
}

.playbook-history-toasts__stack:hover .playbook-history-toast,
.playbook-history-toasts__stack:focus-within .playbook-history-toast {
  margin-top: 0.625rem;
  transform: none;
}

.playbook-history-toasts__stack:hover .playbook-history-toast:first-child,
.playbook-history-toasts__stack:focus-within .playbook-history-toast:first-child {
  margin-top: 0;
}

.playbook-history-toast:hover {
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.7) inset,
    0 4px 10px rgba(0, 0, 0, 0.06),
    0 16px 36px rgba(0, 0, 0, 0.14);
}

.playbook-history-toast--current {
  border-color: rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.playbook-history-toast__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.playbook-history-toast__label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.playbook-history-toast__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0a0a0a;
}

.playbook-history-toast__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  border-radius: 9999px;
  background: #f5f5f5;
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: #525252;
}

.playbook-history-toast__meta {
  margin: 0.125rem 0 0;
  font-size: 0.6875rem;
  line-height: 1rem;
  color: #737373;
}

.playbook-history-toast__action {
  flex-shrink: 0;
  border: none;
  border-radius: 9999px;
  background: #0a0a0a;
  padding: 0.3125rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
}

.playbook-history-toast__action:hover {
  background: #262626;
}

.playbook-history-toast__body {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: #404040;
}

.playbook-history-toast__foot {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.6875rem;
  color: #a3a3a3;
}

.playbook-history-toast__trigger {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #737373;
}

.playbook-run-log-toast__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.playbook-run-log-toast__when {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  color: #737373;
}

.playbook-run-log-toast__duration {
  margin-left: auto;
  font-size: 0.6875rem;
  color: #a3a3a3;
}

.playbook-run-log-toast__trigger {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0a0a0a;
}

.playbook-run-log-toast__meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.6875rem;
  color: #737373;
}

.playbook-run-log-toast__note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: #525252;
}

.playbook-run-log-toast__status {
  border-radius: 9999px;
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.playbook-run-log-toast__status--success {
  background: #f5f5f5;
  color: #525252;
}

.playbook-run-log-toast__status--partial {
  background: #fffbeb;
  color: #a16207;
}

.playbook-run-log-toast__status--failed {
  background: #fef2f2;
  color: #b91c1c;
}

.playbooks-table__date-text {
  color: #a3a3a3;
}

.playbook-composer__badge--tag {
  background: #eff6ff;
  color: #1d4ed8;
}

.playbook-composer__message-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 1.5rem;
  height: 1.375rem;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  padding: 0 0.25rem;
  color: #737373;
  cursor: pointer;
}

.playbook-composer__message-btn:hover {
  background: #f5f5f5;
  color: #404040;
}

.playbook-composer__message-count {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  color: #404040;
}

.playbook-composer__add-tag-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.375rem;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #737373;
  cursor: pointer;
}

.playbook-composer__add-tag-btn:hover {
  color: #404040;
}

.playbook-tags-modal__assigned {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.playbook-tags-modal__empty {
  font-size: 0.75rem;
  color: #737373;
}

.playbook-tags-modal__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.playbook-tags-modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.375rem 0;
}

.playbook-tags-modal__row + .playbook-tags-modal__row {
  border-top: 1px solid #f5f5f5;
}

.playbook-tags-modal__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #ffffff;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  color: #404040;
  cursor: pointer;
}

.playbook-tags-modal__chip--active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.playbook-tags-modal__row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.playbook-tags-modal__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  color: #737373;
  cursor: pointer;
}

.playbook-tags-modal__icon-btn:hover {
  background: #f5f5f5;
  color: #0a0a0a;
}

.playbook-tags-modal__rename {
  min-width: 0;
  flex: 1;
  border: 1px solid #e5e5e5;
  border-radius: 0.375rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  outline: none;
}

.playbook-tags-modal__create {
  display: flex;
  gap: 0.5rem;
}

.playbook-tags-modal__create input {
  min-width: 0;
  flex: 1;
  border: 1px solid #e5e5e5;
  border-radius: 0.375rem;
  padding: 0.4375rem 0.625rem;
  font-size: 0.8125rem;
  outline: none;
}

.playbook-tags-modal__create-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.375rem;
  background: #ffffff;
  padding: 0.4375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #404040;
  cursor: pointer;
}

.contacts-toolbar .referrals-toolbar-tabs .playbooks-category-tabs__btn {
  flex-shrink: 0;
}

.playbooks-category-tabs__btn .referrals-tab-count {
  margin-left: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #a3a3a3;
}

.playbooks-category-tabs__btn--active .referrals-tab-count {
  color: #737373;
}

.app-shell__workspace--split .context-assistant-panel {
  flex: 0 0 var(--assistant-panel-width);
  width: var(--assistant-panel-width);
  max-width: var(--assistant-panel-width);
  min-width: 26rem;
  flex-shrink: 0;
  border-radius: 10px;
}

.assistant-shortcut-btn .assistant-shortcut-btn__icon {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

.context-assistant-panel__icon-btn--active {
  background: #f5f5f5;
  color: #0a0a0a;
}

.pb-sandbox {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 0;
}

.pb-sandbox__empty {
  padding-top: 2rem;
}

.pb-sandbox__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
}

.pb-sandbox__toolbar-copy {
  min-width: 0;
  flex: 1;
}

.pb-sandbox__title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.pb-sandbox__badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  border-radius: 999px;
  background: #eff6ff;
  padding: 0.125rem 0.4375rem;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 0.875rem;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pb-sandbox__title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.125rem;
  color: #0a0a0a;
}

.pb-sandbox__meta {
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  line-height: 1rem;
  color: #737373;
}

.pb-sandbox__rerun {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.375rem;
  background: #ffffff;
  padding: 0.3125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1rem;
  color: #0a0a0a;
  cursor: pointer;
}

.pb-sandbox__rerun:hover:not(:disabled) {
  background: #fafafa;
}

.pb-sandbox__rerun:disabled {
  cursor: default;
  opacity: 0.5;
}

.pb-sandbox__banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #737373;
}

.pb-sandbox__stack {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  background: #ffffff;
}

.pb-sandbox__block {
  padding: 0.625rem 0.75rem;
  border-top: 1px solid #f0f0f0;
}

.pb-sandbox__block:first-child {
  border-top: none;
}

.pb-sandbox__block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.pb-sandbox__block-label {
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 0.875rem;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pb-sandbox__status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 0.875rem;
  color: #737373;
}

.pb-sandbox__status--done {
  color: #15803d;
}

.pb-sandbox__text {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.125rem;
  color: #0a0a0a;
  white-space: pre-wrap;
}

.pb-sandbox__text--empty {
  color: #a3a3a3;
  font-style: italic;
}

.pb-sandbox__block--active {
  background: #fafcff;
}

.pb-sandbox__steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pb-sandbox__step-card {
  border: 1px solid #ececec;
  border-radius: 0.375rem;
  background: #fafafa;
  padding: 0.5rem 0.625rem;
}

.pb-sandbox__step-card--running {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.pb-sandbox__step-card--done {
  background: #ffffff;
}

.pb-sandbox__step-head {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem;
}

.pb-sandbox__step-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-top: 0.125rem;
}

.pb-sandbox__step-icon--done {
  background: #2563eb;
  color: #ffffff;
}

.pb-sandbox__step-icon--running {
  color: #2563eb;
}

.pb-sandbox__step-icon--queued {
  border: 1.5px solid #d4d4d4;
  background: #ffffff;
}

.pb-sandbox__step-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.125rem;
}

.pb-sandbox__step-index {
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 0.875rem;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pb-sandbox__step-label {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.125rem;
  color: #0a0a0a;
}

.pb-sandbox__step-card--done .pb-sandbox__step-label {
  color: #404040;
}

.pb-sandbox__step-state {
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.125rem;
  color: #2563eb;
}

.pb-sandbox__step-body {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f0f0f0;
}

.pb-sandbox__step-instruction {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.125rem;
  color: #525252;
  white-space: pre-wrap;
}

.pb-sandbox__trace {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.pb-sandbox__block .pb-sandbox__text + .pb-sandbox__trace {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid #f0f0f0;
}

.pb-sandbox__trace-item {
  border-left: 2px solid #e5e5e5;
  padding-left: 0.625rem;
}

.pb-sandbox__trace-item--reading {
  border-left-color: #a3a3a3;
}

.pb-sandbox__trace-item--reasoning {
  border-left-color: #8b5cf6;
}

.pb-sandbox__trace-item--action {
  border-left-color: #2563eb;
}

.pb-sandbox__trace-item--outcome {
  border-left-color: #16a34a;
}

.pb-sandbox__trace-item--active {
  background: rgba(37, 99, 235, 0.04);
  margin-inline: -0.25rem;
  border-radius: 0.25rem;
  padding: 0.25rem 0.25rem 0.25rem 0.625rem;
}

.pb-sandbox__trace-head {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #525252;
}

.pb-sandbox__trace-item--active .pb-sandbox__trace-head {
  color: #2563eb;
}

.pb-sandbox__trace-title {
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pb-sandbox__trace-action {
  display: inline-flex;
  margin-top: 0.25rem;
  border-radius: 0.25rem;
  background: #eff6ff;
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 0.875rem;
  color: #1d4ed8;
}

.pb-sandbox__trace-body {
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.125rem;
  color: #404040;
}

.pb-sandbox__block--result {
  background: #f0fdf4;
}

.pb-sandbox__result {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #15803d;
}

.pb-sandbox__result-copy {
  min-width: 0;
}

.pb-sandbox__result-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  color: #166534;
}

.pb-sandbox__result-body {
  margin: 0.125rem 0 0;
  font-size: 0.6875rem;
  line-height: 1rem;
  color: #15803d;
}

.context-assistant-panel .context-assistant-panel__assistant-mark {
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.1875rem;
  flex-shrink: 0;
  color: #0a0a0a;
}

.context-assistant-panel__composer--locked {
  min-height: 4.5625rem;
}

.context-assistant-panel__composer-toolbar--stop {
  justify-content: flex-end;
  padding-left: 0.25rem;
}

.context-assistant-panel__composer-stop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 0.375rem;
  background: #fafafa;
  color: #525252;
  cursor: pointer;
}

.context-assistant-panel__composer-stop:hover {
  background: #f5f5f5;
}

/* RMS AppShell already provides the white page surface — fill it instead of nesting another card. */
.app-shell__panel.playbooks-view,
.app-shell__panel.playbook-composer {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.assistant-sidebar-slot .context-assistant-panel {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  flex: none;
  border-radius: var(--radius-page, 10px);
}

.context-assistant-panel--playbook .context-assistant-panel__header,
.context-assistant-panel--playbook .pb-assist__tabs,
.context-assistant-panel--playbook .context-assistant-panel__body,
.context-assistant-panel--playbook .context-assistant-panel__footer {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.context-assistant-panel--playbook .context-assistant-panel__messages,
.context-assistant-panel--playbook .pb-assist__history,
.context-assistant-panel--playbook .pb-sandbox {
  min-width: 0;
  max-width: 100%;
}

.playbook-author-avatar:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

.playbook-runtime-badge {
  display: inline-flex;
  align-items: center;
  height: 1.25rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.playbook-runtime-badge--ok {
  background: var(--assess-complete-bg);
  color: var(--assess-complete);
}

.playbook-runtime-badge--bad {
  background: var(--alert-critical-bg);
  color: var(--alert-critical-text);
}

.playbook-runtime-badge--busy {
  background: var(--utility-amber-bg);
  color: var(--utility-amber);
}

.playbooks-table__metrics-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.playbook-compile-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0 1.25rem 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-secondary);
  background: var(--bg-tertiary);
}

.playbook-compile-banner--failed {
  border-color: var(--alert-critical-border);
  background: var(--alert-critical-bg);
  color: var(--alert-critical-text);
}

.playbook-compile-banner--busy {
  border-color: var(--utility-amber-border);
  background: var(--utility-amber-bg);
}

.playbook-compile-banner__copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.playbook-compile-banner__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.playbook-compile-banner__body {
  margin: 0;
  font-size: 12px;
  color: inherit;
}

.playbook-compile-banner__edits {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
  font-size: 12px;
}

.playbook-compile-banner__retry {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 1.75rem;
  padding: 0 0.6rem;
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
}
