#mainTabs {
  display: none;
}

#promptDialog {
  display: none;
}

#promptList {
  display: none !important;
}

#promptsSection {
  padding-bottom: 48px;
}

#promptWorkspace {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prompt-workspace-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.prompt-workspace-header h2 {
  margin: 0;
}

.prompt-workspace-description {
  margin: 8px 0 0;
  color: #53627a;
}

.prompt-profile-selector {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 230px;
  color: #53627a;
  font-size: 13px;
  font-weight: 700;
}

.prompt-profile-selector select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  background: #fff;
  color: #182338;
  font: inherit;
}

.prompt-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e0e6ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(21, 34, 56, 0.05);
  overflow-x: auto;
}

.prompt-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #31415b;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.prompt-tab:hover {
  background: #f4f6f9;
}

.prompt-tab.active {
  background: #182338;
  color: #fff;
  box-shadow: 0 3px 8px rgba(24, 35, 56, 0.16);
}

.prompt-editor-card {
  padding: 26px;
  border: 1px solid #dfe5ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(21, 34, 56, 0.06);
}

.prompt-editor-card-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.prompt-editor-card-header h3 {
  margin: 10px 0 7px;
  color: #17243a;
  font-size: 23px;
}

.prompt-editor-card-header p {
  margin: 0;
  color: #65738a;
  line-height: 1.5;
}

.prompt-editor-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid #dfe5ed;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.prompt-editor-status.configured {
  color: #43546d;
  background: #f4f6f9;
}

.prompt-editor-status.not-configured {
  color: #9a4f00;
  background: #fff9eb;
  border-color: #ffd979;
}

.prompt-textarea-label {
  display: block;
  margin-bottom: 8px;
  color: #35445d;
  font-size: 13px;
  font-weight: 800;
}

#promptWorkspaceTextarea {
  display: block;
  width: 100%;
  min-height: 390px;
  box-sizing: border-box;
  padding: 16px;
  resize: vertical;
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  background: #fbfcfe;
  color: #1b273c;
  font: 15px/1.65 inherit;
}

#promptWorkspaceTextarea:focus {
  outline: none;
  border-color: #94a6bf;
  box-shadow: 0 0 0 3px rgba(72, 96, 128, 0.08);
  background: #fff;
}

.prompt-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.prompt-editor-footer .message {
  margin: 0;
  min-height: 20px;
}

#saveWorkspacePrompt {
  flex: 0 0 auto;
  min-width: 150px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 24, 40, .12);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

#saveWorkspacePrompt:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 3px 8px rgba(16, 24, 40, .14);
}

#saveWorkspacePrompt:active {
  transform: translateY(1px);
}

#saveWorkspacePrompt:focus-visible {
  outline: 3px solid rgba(23, 92, 211, .18);
  outline-offset: 2px;
}

#saveWorkspacePrompt:disabled {
  opacity: 0.65;
  cursor: wait;
}

.prompt-empty {
  padding: 32px;
  border: 1px dashed #ccd5e1;
  border-radius: 14px;
  background: #fff;
  color: #64738a;
  text-align: center;
}

@media (max-width: 760px) {
  .prompt-workspace-header {
    align-items: stretch;
    flex-direction: column;
  }

  .prompt-profile-selector {
    min-width: 0;
  }

  .prompt-tab {
    padding: 0 15px;
  }

  .prompt-editor-card {
    padding: 18px;
  }

  #promptWorkspaceTextarea {
    min-height: 320px;
  }

  .prompt-editor-footer {
    align-items: stretch;
    flex-direction: column;
  }

  #saveWorkspacePrompt {
    width: 100%;
  }
}
