/* Admin Dashboard V2 - Split Workspace (Polished) */

/* ===== Workspace Layout ===== */
.dashboard-workspace {
  display: flex;
  gap: 0.85rem;
  min-height: calc(100vh - var(--layout-topbar-height, 56px) - 2rem);
}

.workspace-sidebar {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: calc(100vh - var(--layout-topbar-height, 56px) - 1rem);
}

.workspace-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

/* ===== Sidebar Header ===== */
.ws-sidebar-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
  border: 1px solid var(--border, #E1E5EF);
  border-radius: var(--instruction-radius, 12px);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-soft, 0 1px 3px rgba(0,0,0,0.06));
}

.ws-sidebar-header h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main, #1E2430);
}

/* ===== Sidebar List ===== */
.ws-sidebar-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-right: 0.25rem;
}

.ws-list-item {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfd 100%);
  border: 1px solid var(--border, #E1E5EF);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.ws-list-item:hover {
  border-color: rgba(74, 111, 165, 0.35);
  box-shadow: 0 6px 18px rgba(22, 34, 56, 0.08);
  transform: translateY(-1px);
}

.ws-list-item.active {
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.08) 0%, rgba(74, 111, 165, 0.03) 100%);
  border-color: var(--color-primary, #4A6FA5);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1), 0 4px 12px rgba(74, 111, 165, 0.1);
}

.ws-list-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--color-primary, #4A6FA5);
  border-radius: 0 3px 3px 0;
}

.ws-list-item .ws-list-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main, #1E2430);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.ws-list-item .ws-list-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.ws-list-item .ws-list-meta {
  font-size: 0.82rem;
  color: var(--text-sub, #5C6372);
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-list-item .ws-list-badges {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.ws-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border, #E1E5EF);
  background: #f1f3f8;
  color: var(--text-sub, #5C6372);
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
}

.ws-badge.is-on {
  background: linear-gradient(135deg, rgba(45, 143, 111, 0.12) 0%, rgba(45, 143, 111, 0.06) 100%);
  border-color: rgba(45, 143, 111, 0.25);
  color: var(--color-success, #2D8F6F);
}

.ws-sidebar-footer {
  padding-top: 0.25rem;
}

.ws-sidebar-footer .btn {
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(74, 111, 165, 0.15);
}

/* ===== Workspace Header ===== */
.ws-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
  border: 1px solid var(--border, #E1E5EF);
  border-radius: var(--instruction-radius, 12px);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-soft, 0 1px 3px rgba(0,0,0,0.06));
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ws-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ws-header-info {
  min-width: 0;
  flex: 1;
}

.ws-header-info h3 {
  font-weight: 700;
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-main, #1E2430);
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.ws-header-meta {
  color: var(--text-sub, #5C6372);
  font-size: 0.8rem;
  margin-top: 0.05rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#starterModalInstructionName {
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.ws-header-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.ws-header-actions .btn {
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.15s ease;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
}

/* ===== Starter Button (Prominent) ===== */
.btn-starter {
  background: linear-gradient(135deg, #E6B75C 0%, #DFA94B 100%);
  border: none;
  color: #2b1d0d;
  box-shadow: 0 2px 8px rgba(223, 169, 75, 0.35);
  font-weight: 700;
}

.btn-starter:hover {
  background: linear-gradient(135deg, #DFA94B 0%, #D49A3A 100%);
  color: #2b1d0d;
  box-shadow: 0 4px 14px rgba(223, 169, 75, 0.45);
  transform: translateY(-1px);
}

.btn-starter:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(223, 169, 75, 0.3);
}

.btn-starter i {
  color: #2b1d0d;
}

/* ===== Workspace Toolbar (Metrics + Tabs in one row) ===== */
.ws-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(225, 229, 239, 0.6);
}

/* ===== Workspace Tabs ===== */
.ws-tabs {
  display: inline-flex;
  gap: 0.15rem;
  background: #f0f2f7;
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid var(--border, #E1E5EF);
  flex-shrink: 0;
}

.ws-tab {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-sub, #5C6372);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-family-base, 'Mali', 'Inter', sans-serif);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
}

.ws-tab.active {
  background: #fff;
  color: var(--color-primary, #4A6FA5);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 4px 12px rgba(74, 111, 165, 0.12);
}

.ws-tab:hover:not(.active) {
  color: var(--text-main, #1E2430);
  background: rgba(255,255,255,0.6);
}

/* ===== Workspace Panel ===== */
.ws-panel {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfd 100%);
  border: 1px solid var(--border, #E1E5EF);
  border-radius: var(--instruction-radius, 12px);
  box-shadow: var(--shadow-soft, 0 1px 3px rgba(0,0,0,0.06));
  padding: 1.35rem;
  flex: 1;
  overflow-y: auto;
  min-height: 200px;
}

.ws-panel:not(.active) {
  display: none !important;
}

/* ===== Mini Metrics ===== */
.ws-mini-metrics {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.ws-mini-metric {
  background: #fff;
  border: 1px solid var(--border, #E1E5EF);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  text-align: center;
  min-width: 58px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.ws-mini-metric .num {
  font-weight: 700;
  color: var(--text-main, #1E2430);
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ws-mini-metric .lbl {
  font-size: 0.62rem;
  color: var(--text-muted, #8B92A3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 0.05rem;
  line-height: 1.3;
}

.ws-mini-metric:hover {
  border-color: rgba(74, 111, 165, 0.35);
  transform: translateY(-1px);
  box-shadow:
    0 6px 16px rgba(22, 34, 56, 0.07),
    0 2px 4px rgba(22, 34, 56, 0.04);
}

/* ===== Workspace Data Row ===== */
.ws-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border, #E1E5EF);
  border-radius: 10px;
  background: linear-gradient(135deg, #f9fafc 0%, #f5f6fa 100%);
  margin-bottom: 0.5rem;
  transition: all 0.15s ease;
}

.ws-data-row:hover {
  border-color: rgba(74, 111, 165, 0.25);
  background: #fff;
  box-shadow: 0 4px 12px rgba(22, 34, 56, 0.06);
  transform: translateY(-1px);
}

.ws-data-row .title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main, #1E2430);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ws-data-row .meta {
  font-size: 0.8rem;
  color: var(--text-sub, #5C6372);
}

/* ===== Workspace Empty State ===== */
.workspace-empty {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
  border: 1px solid var(--border, #E1E5EF);
  border-radius: var(--instruction-radius, 12px);
  box-shadow: var(--shadow-soft, 0 1px 3px rgba(0,0,0,0.06));
  flex: 1;
  display: grid;
  place-items: center;
}

/* ===== Legacy: Instruction Editor Card (kept for compatibility) ===== */
.instruction-editor-card {
  border-radius: 12px;
}

.instruction-editor-card .card-body {
  padding: 1rem 1rem 0.75rem;
}

.instruction-editor-status {
  font-size: 0.95rem;
  color: var(--text-sub, #5C6372);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.instruction-editor-status.active {
  color: var(--color-primary, #4A6FA5);
  font-weight: 700;
}

.instruction-editor-status-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.instruction-editor-actions {
  width: 100%;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.instruction-editor-actions .btn {
  font-weight: 600;
}

.instruction-starter-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border, #E1E5EF);
  background: #f8f9fc;
  color: var(--text-sub, #5C6372);
  font-size: 0.82rem;
  width: fit-content;
}

.instruction-starter-status-chip i {
  font-size: 0.78rem;
}

.instruction-starter-status-chip.is-on {
  border-color: rgba(45, 143, 111, 0.25);
  background: rgba(45, 143, 111, 0.12);
  color: #1f7d5c;
}

.instruction-starter-status-chip.is-off {
  border-color: rgba(139, 146, 163, 0.25);
  background: rgba(139, 146, 163, 0.12);
  color: #5c6372;
}

.instruction-editor-alert {
  font-size: 0.9rem;
  border-radius: 10px;
}

/* ===== Legacy: Instruction Grid & Cards (hidden but kept for JS) ===== */
.instruction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.25rem;
}

.instruction-card {
  border: 1px solid var(--border, #E1E5EF);
  border-radius: var(--instruction-radius, 12px);
  background: var(--bg-card, #fff);
  box-shadow: var(--shadow-soft, 0 1px 3px rgba(0, 0, 0, 0.06));
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.instruction-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 34, 56, 0.08);
  border-color: rgba(74, 111, 165, 0.25);
}

.instruction-header {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border, #E1E5EF);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}

.instruction-header > .flex-grow-1 {
  min-width: 0;
}

.instruction-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main, #1E2430);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instruction-desc {
  font-size: 0.9rem;
  color: var(--text-sub, #5C6372);
  margin: 0.1rem 0 0 0;
}

.instruction-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.instruction-actions .btn {
  --bs-btn-padding-y: 0.35rem;
  --bs-btn-padding-x: 0.55rem;
  --bs-btn-font-size: 0.85rem;
  border-radius: 8px;
}

.data-items-container {
  padding: 0.35rem 0.5rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.data-item {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border, #E1E5EF);
  border-radius: 10px;
  background: #f9fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.data-item-info {
  flex: 1;
  min-width: 0;
}

.data-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-main, #1E2430);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.data-item-order {
  color: var(--color-primary, #4A6FA5);
}

.data-item-meta {
  font-size: 0.85rem;
  color: var(--text-sub, #5C6372);
  margin: 0.15rem 0 0 0;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.type-badge.type-text {
  background: rgba(61, 127, 193, 0.12);
  color: #2f6ca1;
}

.type-badge.type-table {
  background: rgba(45, 143, 111, 0.12);
  color: #1f7d5c;
}

.data-item-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.data-item-actions .btn {
  --bs-btn-padding-y: 0.3rem;
  --bs-btn-padding-x: 0.45rem;
  --bs-btn-font-size: 0.8rem;
  border-radius: 8px;
}

.data-item-actions .btn-move {
  color: var(--text-sub, #5C6372);
}

.instruction-footer {
  padding: 0.35rem 0.5rem;
  border-top: 1px solid var(--border, #E1E5EF);
  background: #f8f9fc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-sub, #5C6372);
}

.btn-add-item {
  width: 100%;
  padding: 0.65rem;
  font-size: 0.9rem;
  border: 1px dashed var(--border, #E1E5EF);
  background: #fff;
  border-radius: 10px;
  color: var(--text-sub, #5C6372);
  transition: var(--transition-base, all 0.2s ease);
}

.btn-add-item:hover {
  background: rgba(74, 111, 165, 0.05);
  border-color: rgba(74, 111, 165, 0.5);
  color: var(--color-primary, #4A6FA5);
}

.instruction-meta-badges {
  margin-top: 0.45rem;
}

.starter-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border, #E1E5EF);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.starter-status-badge i {
  font-size: 0.7rem;
}

.starter-status-badge.is-on {
  border-color: rgba(45, 143, 111, 0.25);
  background: rgba(45, 143, 111, 0.12);
  color: #1f7d5c;
}

.starter-status-badge.is-off {
  border-color: rgba(139, 146, 163, 0.25);
  background: rgba(139, 146, 163, 0.12);
  color: #5c6372;
}

/* ===== Preview Box ===== */
.preview-box {
  background: #f9fafc;
  border: 1px solid var(--border, #E1E5EF);
  border-radius: 10px;
  padding: 0.85rem;
  max-height: 420px;
  overflow: auto;
}

/* ===== Empty State ===== */
.empty-state-card {
  border: 1px dashed var(--border, #E1E5EF);
  background: linear-gradient(135deg, #fbfcff 0%, #f5f7fb 100%);
  border-radius: 12px;
  padding: 1.75rem;
}

/* ===== Conversation Starter Modal ===== */
.conversation-starter-modal .modal-body {
  background: #f8f9fc;
}

.starter-modal-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.starter-modal-counter {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border, #E1E5EF);
  background: #fff;
  color: var(--text-sub, #5C6372);
  font-size: 0.8rem;
  font-weight: 600;
}

.starter-modal-help {
  font-size: 0.85rem;
  color: var(--text-sub, #5C6372);
  margin-bottom: 0.75rem;
}

.starter-modal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.starter-message-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.starter-message-empty {
  text-align: center;
  color: #8b92a3;
  border: 1px dashed #d8dde9;
  border-radius: 10px;
  padding: 0.9rem;
  background: #fff;
  font-size: 0.9rem;
}

.starter-message-item {
  border: 1px solid var(--border, #E1E5EF);
  border-radius: 10px;
  background: #fff;
  padding: 0.75rem;
}

.starter-message-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.starter-message-head-left {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.starter-message-order {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(74, 111, 165, 0.12);
  color: var(--color-primary, #4A6FA5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.starter-message-type {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.starter-message-type.type-text {
  background: rgba(61, 127, 193, 0.12);
  color: #2f6ca1;
}

.starter-message-type.type-image {
  background: rgba(45, 143, 111, 0.12);
  color: #1f7d5c;
}

.starter-message-type.type-video {
  background: rgba(198, 122, 38, 0.14);
  color: #9a5b16;
}

.starter-message-actions {
  display: inline-flex;
  gap: 0.3rem;
}

.starter-message-actions .btn {
  --bs-btn-padding-y: 0.2rem;
  --bs-btn-padding-x: 0.42rem;
  --bs-btn-font-size: 0.76rem;
}

.starter-message-text {
  resize: vertical;
  min-height: 80px;
}

.starter-message-image-wrap {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.starter-message-image-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border, #E1E5EF);
  background: #f8f9fc;
}

.starter-message-image-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.starter-message-image-url {
  font-size: 0.78rem;
  color: var(--text-sub, #5C6372);
  word-break: break-all;
}

.starter-message-video-preview {
  width: 180px;
  max-width: 100%;
  max-height: 120px;
  border-radius: 8px;
  border: 1px solid var(--border, #E1E5EF);
  background: #f8f9fc;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .dashboard-workspace {
    flex-direction: column;
    gap: 0.55rem;
    min-height: auto;
  }

  .workspace-sidebar {
    width: 100%;
    max-height: 36vh;
    gap: 0.35rem;
  }

  .workspace-main {
    min-height: auto;
  }

  .ws-header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .ws-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .ws-sidebar-header,
  .ws-header,
  .ws-panel,
  .workspace-empty,
  .empty-state-card {
    border-radius: 8px;
  }

  .ws-sidebar-header {
    padding: 0.55rem 0.65rem;
  }

  .ws-sidebar-header h5 {
    font-size: 0.86rem;
  }

  .ws-sidebar-header .badge {
    font-size: 0.68rem;
    padding: 0.18rem 0.4rem;
  }

  .ws-sidebar-list {
    gap: 0.28rem;
    padding-right: 0.15rem;
  }

  .ws-list-item {
    border-radius: 8px;
    padding: 0.5rem 0.62rem;
  }

  .ws-list-item.active::before {
    top: 9px;
    bottom: 9px;
    width: 2px;
  }

  .ws-list-item .ws-list-name {
    font-size: 0.82rem;
    gap: 0.3rem;
  }

  .ws-list-item .ws-list-meta {
    font-size: 0.72rem;
    margin-top: 0.12rem;
  }

  .ws-list-item .ws-list-badges {
    gap: 0.25rem;
    margin-top: 0.28rem;
  }

  .ws-badge {
    font-size: 0.64rem;
    padding: 0.12rem 0.38rem;
  }

  .ws-sidebar-footer .btn {
    min-height: 34px;
  }

  .ws-header {
    padding: 0.55rem 0.65rem;
    gap: 0.28rem;
  }

  .ws-header-top {
    gap: 0.45rem;
  }

  .ws-header-info h3 {
    font-size: 0.92rem;
  }

  .ws-header-meta {
    font-size: 0.72rem;
  }

  .ws-header-actions {
    gap: 0.28rem;
  }

  .ws-header-actions .btn {
    padding: 0.26rem 0.48rem;
    font-size: 0.72rem;
    min-height: 30px;
  }

  .ws-toolbar {
    gap: 0.35rem;
    padding-top: 0.28rem;
  }

  .ws-mini-metrics {
    gap: 0.25rem;
    width: 100%;
  }

  .ws-mini-metric {
    flex: 1 1 calc(25% - 0.25rem);
    min-width: 0;
    padding: 0.18rem 0.28rem;
    border-radius: 7px;
  }

  .ws-mini-metric .num {
    font-size: 0.78rem;
  }

  .ws-mini-metric .lbl {
    font-size: 0.52rem;
  }

  .ws-tabs {
    width: 100%;
    padding: 0.15rem;
  }

  .ws-tab {
    flex: 1 1 0;
    justify-content: center;
    padding: 0.28rem 0.4rem;
    font-size: 0.7rem;
  }

  .ws-panel {
    padding: 0.65rem;
    min-height: 150px;
  }

  .workspace-empty {
    min-height: 180px;
  }

  .empty-state-card {
    padding: 1rem;
  }

  .instruction-grid {
    grid-template-columns: 1fr;
  }

  .instruction-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .instruction-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .data-item {
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.38rem 0.45rem;
  }

  .data-item-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 0.2rem;
  }

  .data-item-actions .btn,
  .instruction-actions .btn {
    min-width: 30px;
    min-height: 30px;
  }

  .data-items-container {
    padding: 0.25rem 0.3rem 0.3rem;
    gap: 0.12rem;
  }

  .instruction-editor-actions {
    justify-content: stretch;
  }

  .instruction-editor-actions .btn {
    width: 100%;
  }

  .starter-modal-switch-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .starter-message-image-wrap {
    flex-direction: column;
  }
}
