/* New Persona-Based Onboarding Styles */

:root {
  --color-primary: #0ff;
  --color-secondary: #888;
  --color-bg-primary: #0a0a14;
  --color-text-primary: #e0e0e0;
  --color-border: #333;
  --font-family: 'Courier New', monospace;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Boot message animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

#boot-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 900px;
  text-align: center;
  box-sizing: border-box;
}

.boot-header {
  margin-bottom: 30px;
}

.boot-header h1 {
  color: var(--color-primary);
  text-shadow: 0 0 10px var(--color-primary);
  font-size: 2.5em;
  margin: 0 0 5px 0;
  background: linear-gradient(90deg, #00ffff, #ffd700, #00ffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.boot-header .subtitle {
  color: var(--color-secondary);
  font-size: 1em;
  margin: 0 0 20px 0;
  opacity: 0.8;
}

.subtitle-link {
  color: #999;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px dashed #666;
  text-shadow: none;
}

.subtitle-link:hover {
  opacity: 1;
  color: #bbb;
  border-bottom-style: solid;
}

/* Status Bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 0;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9em;
  flex: 1;
  min-width: 150px;
}

.status-label {
  color: var(--color-text-primary);
  opacity: 0.6;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-value {
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1em;
  line-height: 1.4;
}

.status-value.success {
  color: #0f0;
}

.status-value.error {
  color: #f44;
}

.status-value.warning {
  color: #fa0;
}

.status-value-detail {
  font-size: 0.8em;
  color: var(--color-text-primary);
  opacity: 0.7;
  font-weight: normal;
  margin-top: 2px;
}

.btn-config {
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.2s;
  font-family: var(--font-family);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-config:hover {
  background: rgba(100, 100, 100, 0.3);
  box-shadow: 0 0 10px rgba(100, 100, 100, 0.5);
}

/* Error Message */
.error-message {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.5);
  border-radius: 0;
  padding: 15px;
  margin-bottom: 20px;
  text-align: left;
}

.error-message strong {
  color: #f44;
  display: block;
  margin-bottom: 8px;
}

.error-message p {
  margin: 8px 0;
  font-size: 0.9em;
  line-height: 1.5;
}

.error-message code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 0;
  color: var(--color-primary);
  font-family: 'Courier New', monospace;
}

.error-message ol {
  margin: 10px 0 0 20px;
  padding: 0;
}

.error-message li {
  margin: 5px 0;
  font-size: 0.9em;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  background: var(--color-bg-primary);
  border: 2px solid var(--color-primary);
  border-radius: 0;
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  position: relative;
  margin: 0 auto;
}

/* Smooth scrollbar for modal content */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 0;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
  color: var(--color-primary);
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 2em;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-btn:hover {
  color: var(--color-primary);
}

.modal-body {
  padding: 20px;
}

.modal-body > p {
  margin: 0 0 20px 0;
  font-size: 0.9em;
  opacity: 0.8;
}

/* Modal Tabs */
.modal-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-border);
}

.modal-tab {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0.6;
  margin-bottom: -2px;
}

.modal-tab:hover {
  opacity: 0.9;
  background: rgba(0, 255, 255, 0.05);
}

.modal-tab.active {
  opacity: 1;
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: bold;
}

.modal-tab-content {
  display: none;
}

.modal-tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-tab-description {
  margin: 0 0 20px 0;
  font-size: 0.9em;
  opacity: 0.8;
  color: var(--color-text-primary);
}

.api-key-input {
  margin-bottom: 20px;
}

.api-key-input label {
  display: block;
  color: var(--color-secondary);
  margin-bottom: 8px;
  font-weight: bold;
}

.api-key-input input {
  width: 100%;
  padding: 10px;
  background: #111;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  border-radius: 0;
  box-sizing: border-box;
}

.api-key-input input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.api-key-input small {
  display: block;
  margin-top: 5px;
  font-size: 0.8em;
  opacity: 0.7;
}

.api-key-input small a {
  color: var(--color-primary);
  text-decoration: none;
}

.api-key-input small a:hover {
  text-decoration: underline;
}

/* Model Selection Styles */
.model-selection-group {
  margin-bottom: 20px;
}

.model-select-label {
  display: block;
  color: var(--color-secondary);
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 1em;
}

.model-select-dropdown {
  width: 100%;
  padding: 12px;
  background: #111;
  border: 2px solid var(--color-border);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 0.95em;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s;
}

.model-select-dropdown:hover {
  border-color: var(--color-primary);
}

.model-select-dropdown:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.model-select-dropdown optgroup {
  background: #0a0a14;
  color: var(--color-secondary);
  font-weight: bold;
  font-size: 0.9em;
  padding: 8px 0;
}

.model-select-dropdown option {
  background: #111;
  color: var(--color-text-primary);
  padding: 8px;
  font-size: 0.95em;
}

.model-description {
  display: block;
  margin-top: 8px;
  font-size: 0.85em;
  color: var(--color-primary);
  opacity: 0.8;
  font-style: italic;
  line-height: 1.4;
}

/* Configuration Sections */
.api-key-section,
.local-config-section,
.custom-proxy-section {
  margin-top: 20px;
  padding: 15px;
  background: rgba(0, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 0;
  transition: opacity 0.2s ease-out;
}

.api-key-section:not(.hidden),
.local-config-section:not(.hidden),
.custom-proxy-section:not(.hidden) {
  animation: fadeIn 0.2s ease-out;
}

.paxos-notice {
  margin-top: 20px;
  padding: 12px 15px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 0;
  color: var(--color-secondary);
  font-size: 0.9em;
  line-height: 1.5;
}

.paxos-notice p {
  margin: 0;
}

#save-keys-btn {
  width: 100%;
  margin-top: 20px;
}

/* Advanced Settings Styles */
.settings-section {
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(0, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 0;
}

.settings-section-title {
  color: var(--color-secondary);
  font-size: 1em;
  font-weight: bold;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.setting-item {
  margin-bottom: 15px;
}

.setting-item:last-child {
  margin-bottom: 0;
}

.setting-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 8px;
}

.setting-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.setting-checkbox-text {
  color: var(--color-text-primary);
  font-size: 0.95em;
  font-weight: 500;
}

.setting-description {
  margin: 0;
  padding-left: 32px;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  text-align: left;
}

.setting-placeholder {
  margin: 0;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* Goal Input at Top */
.goal-container-top {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
  box-sizing: border-box;
}

.goal-label {
  display: block;
  color: var(--color-secondary);
  font-size: 1.1em;
  margin-bottom: 12px;
  text-align: left;
}

.goal-input-group {
  display: flex;
  gap: 10px;
}

.goal-input-group #goal-input {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-family);
  background: #111 !important;
  border: 2px solid var(--color-border);
  color: #f0f0f0 !important;
  font-size: 1em;
  transition: all 0.3s;
}

/* Goal Example Chips */
.goal-example-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.goal-chip {
  padding: 8px 14px;
  background: rgba(60, 60, 60, 0.5);
  border: 1px solid rgba(100, 100, 100, 0.3);
  border-radius: 999px;
  color: #aaa;
  font-size: 12px;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.goal-chip:hover {
  background: rgba(80, 80, 80, 0.6);
  border-color: rgba(150, 150, 150, 0.5);
  box-shadow: 0 2px 8px rgba(100, 100, 100, 0.3);
}

.goal-input-group #goal-input:focus {
  outline: none;
  background: #111 !important;
  border-color: #888;
  border-width: 2px;
  box-shadow: 0 0 12px rgba(120, 120, 120, 0.3);
}

.goal-input-group #goal-input::placeholder {
  color: rgba(224, 224, 224, 0.5);
}

.goal-input-group .btn {
  white-space: nowrap;
  padding: 12px 24px;
}

/* Configuration Section */
.config-section {
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Browse Modules Link */
.browse-modules-link {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(80, 80, 80, 0.3);
  text-align: center;
}

.browse-modules-link a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.browse-modules-link a:hover {
  color: var(--color-secondary);
}

/* Module List Styling */
.module-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
  padding: 8px;
}

.module-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(40, 40, 40, 0.4);
  border: 1px solid rgba(80, 80, 80, 0.3);
  border-radius: 0;
  transition: all 0.2s ease;
}

.module-item:hover {
  background: rgba(60, 60, 60, 0.5);
  border-color: rgba(120, 120, 120, 0.5);
}

.module-number {
  font-size: 11px;
  color: #999;
  font-weight: 600;
  min-width: 32px;
  text-align: center;
  background: rgba(80, 80, 80, 0.3);
  padding: 4px 6px;
  border-radius: 0;
}

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

.module-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.module-file {
  font-size: 11px;
  color: var(--color-text-secondary);
  font-family: 'Courier New', monospace;
  opacity: 0.6;
}

/* Tabs */
.config-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--color-border);
}

.config-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0.6;
  margin-bottom: -2px;
}

.config-tab:hover {
  opacity: 0.9;
  background: rgba(0, 255, 255, 0.05);
}

.config-tab.active {
  opacity: 1;
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
}

.tab-text {
  font-weight: bold;
}

.tab-description {
  text-align: center;
  padding: 15px 20px;
  background: rgba(0, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 0;
  margin-bottom: 20px;
}

.tab-description p {
  margin: 0;
  color: var(--color-secondary);
  font-size: 0.9em;
  line-height: 1.5;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

#persona-selection-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.persona-card {
  border: 1px solid var(--color-border);
  padding: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(0, 255, 255, 0.03);
  position: relative;
  text-align: left;
}

.persona-card:hover {
  border-color: var(--color-primary);
  background: rgba(0, 255, 255, 0.08);
}

.persona-card.selected {
  border-color: var(--color-secondary);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.1);
}


.persona-card h3 {
  margin: 0 0 8px 0;
  color: var(--color-primary);
  font-size: 1.1em;
}

.persona-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.65em;
  padding: 3px 8px;
  border-radius: 0;
  font-weight: bold;
  text-transform: uppercase;
  cursor: help;
  transition: all 0.2s;
}

.persona-type-badge:hover {
}

.persona-type-badge.lab {
  background: rgba(0, 255, 255, 0.2);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.persona-type-badge.lab::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  right: 0;
  background: #000;
  color: var(--color-primary);
  padding: 5px 10px;
  border-radius: 0;
  font-size: 1.2em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-bottom: 5px;
  border: 1px solid var(--color-primary);
}

.persona-type-badge.lab:hover::after {
  opacity: 1;
}

.persona-type-badge.factory {
  background: rgba(255, 215, 0, 0.2);
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}

.persona-type-badge.factory::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  right: 0;
  background: #000;
  color: var(--color-secondary);
  padding: 5px 10px;
  border-radius: 0;
  font-size: 1.2em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-bottom: 5px;
  border: 1px solid var(--color-secondary);
}

.persona-type-badge.factory:hover::after {
  opacity: 1;
}

.persona-card p {
  margin: 0 0 12px 0;
  font-size: 0.85em;
  color: var(--color-text-primary);
  line-height: 1.5;
  opacity: 0.9;
}

.lessons-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.lessons-label {
  display: block;
  font-size: 0.8em;
  color: var(--color-secondary);
  margin-bottom: 6px;
  font-weight: bold;
}

.lessons-dropdown {
  width: 100%;
  padding: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 0.85em;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.lessons-dropdown:hover {
  border-color: var(--color-primary);
}

.lessons-dropdown:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.lessons-dropdown option {
  background: #0a0a14;
  color: var(--color-text-primary);
}

.advanced-mode-toggle-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Toggle Switch Styling */
.toggle-checkbox {
  display: none;
}

.toggle-label {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  background: rgba(51, 51, 51, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 26px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-label:hover {
  border-color: var(--color-primary);
}

.toggle-switch {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--color-text-primary);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-checkbox:checked + .toggle-label {
  background: rgba(0, 255, 255, 0.3);
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.toggle-checkbox:checked + .toggle-label .toggle-switch {
  left: 27px;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
}

.advanced-mode-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1em;
  color: var(--color-text-primary);
}

/* Tooltip Styling */
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 255, 255, 0.2);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: bold;
  cursor: help;
  transition: all 0.2s ease;
}

.tooltip-icon:hover {
  background: rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.goal-container {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

#goal-input {
  flex-grow: 1;
  padding: 10px;
  font-family: var(--font-family);
  background: #111 !important;
  border: 2px solid var(--color-border);
  color: #f0f0f0 !important;
  font-size: 1em;
}

#goal-input:focus {
  outline: none;
  background: #111 !important;
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
}

#goal-input::placeholder {
  color: rgba(224, 224, 224, 0.5);
}

#goal-input:disabled {
  opacity: 0.5;
}

.btn {
  padding: 10px 20px;
  border: 1px solid var(--color-primary);
  background: rgba(0, 255, 255, 0.1);
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-size: 1em;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.primary {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.btn.primary:hover:not(:disabled) {
  background: rgba(255, 215, 0, 0.2);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hidden {
  display: none;
}

/* Advanced Mode UI */
.advanced-mode-content {
  text-align: left;
  max-height: 500px;
  overflow-y: auto;
  padding: 20px;
  background: rgba(0, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 0;
}

.advanced-mode-content h3 {
  color: var(--color-primary);
  font-size: 1.2em;
  margin: 20px 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.advanced-mode-content h3:first-child {
  margin-top: 0;
}

.module-category {
  margin-bottom: 25px;
}

.module-category h4 {
  color: var(--color-secondary);
  font-size: 0.9em;
  margin: 0 0 10px 0;
  opacity: 0.8;
}

.module-grid,
.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.module-item,
.blueprint-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.module-item:hover,
.blueprint-item:hover {
  border-color: var(--color-primary);
  background: rgba(0, 255, 255, 0.05);
}

.module-item input[type="checkbox"],
.blueprint-item input[type="checkbox"] {
  display: none;
}

.module-label,
.blueprint-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.module-label strong,
.blueprint-label strong {
  color: var(--color-primary);
  font-size: 0.9em;
}

.module-label small,
.blueprint-label small {
  color: var(--color-text-primary);
  opacity: 0.7;
  font-size: 0.8em;
  line-height: 1.3;
}

/* ===== MOBILE OPTIMIZATIONS ===== */

/* Tablet breakpoint (768px and below) */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  #boot-container {
    max-width: 100%;
    padding: 0 10px;
  }

  .boot-header h1 {
    font-size: 2em;
  }

  .boot-header p {
    font-size: 1.1em;
    margin-bottom: 25px;
  }

  .status-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 15px;
  }

  .status-item {
    min-width: 100%;
  }

  .agent-setup-card {
    padding: 14px 16px;
  }

  .agent-setup-header {
    gap: 10px;
  }

  .agent-model-name {
    font-size: 16px;
  }

  #persona-selection-container {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
  }

  .persona-card {
    padding: 15px;
  }

  .persona-card h3 {
    font-size: 1.1em;
  }

  .persona-card p {
    font-size: 0.85em;
  }

  .advanced-mode-container {
    gap: 10px;
  }

  .advanced-mode-toggle-group {
    gap: 10px;
  }

  .advanced-mode-text {
    font-size: 0.95em;
  }

  .tooltip-icon {
    width: 20px;
    height: 20px;
    font-size: 13px;
  }

  .goal-container {
    flex-direction: column;
    gap: 12px;
  }

  #goal-input {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.05em;
  }
}

/* Small mobile breakpoint (480px and below) */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .boot-header h1 {
    font-size: 1.8em;
    text-shadow: 0 0 8px var(--color-primary);
  }

  .boot-header p {
    font-size: 1em;
    margin-bottom: 20px;
  }

  #persona-selection-container {
    gap: 12px;
    margin-bottom: 15px;
  }

  .persona-card {
    padding: 12px;
  }

  .persona-card h3 {
    font-size: 1em;
    margin-bottom: 8px;
  }

  .persona-card p {
    font-size: 0.8em;
    line-height: 1.4;
  }

  .goal-container {
    gap: 10px;
    margin-top: 15px;
  }

  #goal-input {
    padding: 12px;
    font-size: 16px;
  }

  .btn {
    padding: 14px 20px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .persona-card {
    min-height: 120px;
    padding: 16px;
  }

  #goal-input {
    min-height: 44px;
    font-size: 16px; /* Prevent iOS zoom */
  }

  .btn {
    min-height: 44px;
    touch-action: manipulation; /* Disable double-tap zoom */
  }

  /* Better touch feedback */
  .persona-card:active {
    transform: scale(0.98);
    transition: transform 0.1s;
  }

  .btn:active {
    transform: scale(0.98);
    transition: transform 0.1s;
  }

  /* Smoother scrolling */
  body {
    -webkit-overflow-scrolling: touch;
  }
}

/* Landscape mobile (small height) */
@media (max-height: 600px) and (orientation: landscape) {
  body {
    padding: 10px;
    align-items: flex-start;
  }

  .boot-header {
    margin-top: 0;
  }

  .boot-header h1 {
    font-size: 1.5em;
    margin-bottom: 5px;
  }

  .boot-header p {
    font-size: 0.9em;
    margin-bottom: 15px;
  }

  #persona-selection-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
  }

  .persona-card {
    padding: 10px;
  }

  .persona-card h3 {
    font-size: 0.95em;
    margin-bottom: 5px;
  }

  .persona-card p {
    font-size: 0.75em;
    line-height: 1.3;
  }

  .goal-container {
    flex-direction: row;
    margin-top: 10px;
  }

  .btn {
    white-space: nowrap;
  }
}

/* Simple Mode Styles */
.simple-mode-container {
  text-align: left;
  padding: 20px 0;
}

.simple-mode-title {
  color: var(--color-primary);
  font-size: 1.5em;
  margin-bottom: 10px;
  text-align: center;
}

.simple-mode-subtitle {
  color: var(--color-text-primary);
  opacity: 0.7;
  font-size: 0.95em;
  margin-bottom: 30px;
  text-align: center;
}

.boot-mode-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.boot-mode-btn {
  background: rgba(40, 40, 40, 0.4);
  border: 2px solid var(--color-border);
  border-radius: 0;
  padding: 20px 50px 20px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  color: var(--color-text-primary);
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
}

.boot-mode-btn:hover {
  background: rgba(60, 60, 60, 0.5);
  border-color: rgba(150, 150, 150, 0.5);
}

.boot-mode-btn.selected {
  background: rgba(0, 255, 255, 0.15);
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.boot-mode-btn.selected::after {
  content: '✓';
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--color-primary);
  font-size: 1.5em;
  font-weight: bold;
}

.boot-mode-label {
  font-size: 1.2em;
  color: var(--color-secondary);
  margin-bottom: 8px;
  font-weight: bold;
  text-align: left;
}

.boot-mode-desc {
  font-size: 0.95em;
  color: var(--color-text-primary);
  opacity: 0.8;
  margin-bottom: 10px;
  line-height: 1.5;
}

.boot-mode-modules {
  font-size: 0.85em;
  color: var(--color-primary);
  opacity: 0.6;
  font-family: 'Courier New', monospace;
  margin-top: 5px;
}

/* Responsive adjustments for boot mode buttons */
@media (max-width: 768px) {
  .boot-mode-btn {
    padding: 15px 35px 15px 15px;
  }

  .boot-mode-label {
    font-size: 1.05em;
  }

  .boot-mode-desc {
    font-size: 0.88em;
  }

  .boot-mode-btn.selected::after {
    top: 12px;
    right: 15px;
    font-size: 1.3em;
  }
}

/* Old security settings styles removed - now in modal Advanced tab */

/* Custom Checkbox Styles */
.custom-checkbox {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.custom-checkbox input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.custom-checkbox-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  background: transparent;
  border: 2px solid var(--color-border);
  border-radius: 0;
  transition: all 0.1s ease;
}

.custom-checkbox:hover .custom-checkbox-box {
  border-color: var(--color-primary);
  background: rgba(0, 255, 255, 0.05);
}

.custom-checkbox input[type="checkbox"]:checked ~ .custom-checkbox-box {
  background: transparent;
  border-color: var(--color-primary);
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.3);
}

.custom-checkbox input[type="checkbox"]:checked ~ .custom-checkbox-box::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  color: var(--color-primary);
  font-size: 16px;
  font-weight: bold;
  text-shadow: 0 0 4px var(--color-primary);
  animation: checkPop 0.1s ease-out;
}

@keyframes checkPop {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.custom-checkbox input[type="checkbox"]:focus ~ .custom-checkbox-box {
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

/* Update existing checkbox styles to use custom checkboxes */
.setting-checkbox-label input[type="checkbox"] {
  display: none;
}

.setting-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 8px;
}


/* UI Refresh Styles */

.agent-setup-card {
  background: #101013;
  border: 1px solid #1f1f23;
  border-radius: 0;
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(8, 8, 12, 0.45);
  text-align: left;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}
.agent-setup-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.agent-setup-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.agent-setup-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f6f7a;
  margin-bottom: 6px;
}
.agent-features {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.agent-features li {
  font-size: 13px;
  color: #a3a3ba;
  line-height: 1.5;
}
.feature-status {
  color: #a3a3ba;
}
.agent-config-description {
  margin-top: 6px;
  font-size: 13px;
  color: #a3a3ba;
  max-width: 320px;
}
.agent-model-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.agent-config-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8e8ea6;
}
.agent-config-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  min-width: 0;
}
.agent-model-name {
  font-size: 18px;
  color: #f4f4ff;
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.agent-model-detail {
  font-size: 13px;
  color: #8e8ea6;
  opacity: 0.85;
}
.agent-status-chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(110, 110, 130, 0.15);
  color: #a3a3ba;
  border: 1px solid rgba(110, 110, 130, 0.3);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.status-chip--checking {
  background: rgba(117, 230, 204, 0.08);
  border-color: rgba(117, 230, 204, 0.35);
  color: #75e6cc;
}
.status-chip--inactive {
  background: rgba(110, 110, 130, 0.12);
  border-color: rgba(110, 110, 130, 0.3);
  color: #8e8ea6;
}
.status-chip--active {
  background: rgba(76, 201, 176, 0.2);
  border-color: rgba(76, 201, 176, 0.6);
  color: #4ec9b0;
  font-weight: 500;
}
.status-chip--success {
  background: rgba(76, 201, 176, 0.15);
  border-color: rgba(76, 201, 176, 0.45);
  color: #4ec9b0;
}
.status-chip--error {
  background: rgba(244, 135, 113, 0.18);
  border-color: rgba(244, 135, 113, 0.45);
  color: #f48771;
}
.status-chip--warning {
  background: rgba(255, 211, 105, 0.18);
  border-color: rgba(255, 211, 105, 0.45);
  color: #ffd369;
}

.goal-context {
  margin-bottom: 12px;
}
.goal-context-tagline {
  font-size: 18px;
  margin: 0;
  color: #f4f4ff;
  line-height: 1.4;
}
.goal-context-examples {
  margin: 4px 0 0;
  color: #8e8ea6;
  font-size: 13px;
}

.link-button, .browse-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #4ec9b0;
  cursor: pointer;
  text-decoration: underline;
}
.link-button:hover, .browse-link:hover {
  color: #75e6cc;
}
.browse-link {
  margin-left: 12px;
  font-weight: 500;
}

.help-popover {
  position: absolute;
  z-index: 10000;
  background: #111118;
  border: 1px solid #2d2d3d;
  border-radius: 0;
  padding: 16px;
  width: min(280px, 90vw);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.help-popover-content {
  display: grid;
  gap: 12px;
}
.help-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.help-popover-title {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #75e6cc;
}
.help-popover-body {
  font-size: 13px;
  color: #d0d0e0;
  line-height: 1.5;
}
.help-popover-body .help-section {
  margin-bottom: 12px;
}
.help-popover-body .help-section:last-child {
  margin-bottom: 0;
}
.help-popover-body .help-section strong {
  display: block;
  color: #4fc3f7;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.help-popover-body ul {
  margin: 6px 0 0 0;
  padding-left: 18px;
}
.help-popover-body li {
  margin: 2px 0;
  color: #e0e0f0;
}
.help-popover-body p {
  margin: 4px 0 0 0;
  color: #e0e0f0;
}
.help-popover-close {
  border: none;
  background: none;
  color: #8e8ea6;
  font-size: 20px;
  cursor: pointer;
}
.help-popover-close:hover {
  color: #f4f4ff;
}

.info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1200;
}
.info-overlay.hidden {
  display: none;
}
.info-card {
  background: #12121a;
  border: 1px solid #1f1f23;
  border-radius: 0;
  width: min(420px, 90vw);
  box-shadow: 0 12px 40px rgba(5, 5, 10, 0.55);
  display: flex;
  flex-direction: column;
}
.info-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
}
.info-card-header h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c0c0d0;
}
.info-card-body {
  padding: 0 20px 16px;
  color: #b9bad6;
  font-size: 14px;
  line-height: 1.5;
}
.info-card-body ul {
  margin: 12px 0 0;
  padding-left: 18px;
}
.info-card-footer {
  padding: 12px 20px 18px;
  border-top: 1px solid #1f1f23;
  display: flex;
  justify-content: flex-end;
}
.multi-model-panel {
  margin-top: 24px;
  background: #111118;
  border: 1px dashed #2d2d3d;
  border-radius: 0;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.multi-model-panel .setting-description {
  margin: 0;
  color: #a3a3ba;
}
.multi-model-panel .btn {
  justify-self: flex-start;
}
.multi-model-panel .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.secondary-btn {
  background: #1d1d28;
  border: 1px solid #343446;
  color: #d0d0e0;
  padding: 8px 14px;
  border-radius: 0;
  cursor: pointer;
}
.secondary-btn:hover {
  border-color: #4ec9b0;
  color: #4ec9b0;
}

.directory-modal-content {
  width: min(720px, 95vw);
}
.multi-model-modal-content {
  width: min(520px, 90vw);
}
.modal-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.directory-modal-body {
  padding-top: 8px;
}
.directory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.directory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.directory-filter {
  background: #151521;
  border: 1px solid #2d2d3d;
  border-radius: 0;
  color: #9fa0bb;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.directory-filter.active,
.directory-filter:hover {
  background: #4ec9b0;
  border-color: #4ec9b0;
  color: #0c0c12;
  box-shadow: 0 0 12px rgba(76, 201, 176, 0.25);
}
.directory-tabs {
  display: flex;
  gap: 8px;
}
.directory-tab {
  background: #1d1d28;
  border: 1px solid #343446;
  color: #b8b8c8;
  padding: 6px 14px;
  border-radius: 0;
  cursor: pointer;
}
.directory-tab.active {
  background: #4ec9b0;
  border-color: #4ec9b0;
  color: #0c0c12;
  font-weight: 600;
}
.directory-search {
  flex: 1;
  background: #111118;
  border: 1px solid #292933;
  border-radius: 0;
  padding: 8px 12px;
  color: #f4f4ff;
}
.directory-content {
  max-height: 320px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
}
.directory-item {
  background: #111118;
  border: 1px solid #1f1f29;
  border-radius: 0;
  padding: 12px 14px;
}
.directory-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.directory-item-title {
  font-size: 15px;
  color: #f4f4ff;
  font-weight: 600;
}
.directory-item-status {
  font-size: 12px;
  color: #8e8ea6;
}
.directory-item-description {
  margin: 8px 0 0;
  color: #b9bad6;
  font-size: 13px;
  line-height: 1.5;
}
.directory-item-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.directory-item-presets {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #8e8ea6;
}
.directory-item-presets span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.directory-item-toggle {
  font-size: 16px;
  color: #4ec9b0;
}
.directory-tag {
  background: #1d1d28;
  border: 1px solid #343446;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8e8ea6;
}

.setting-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.setting-checkbox input {
  display: none;
}
.setting-checkbox-box {
  width: 18px;
  height: 18px;
  border: 1px solid #3a3a45;
  border-radius: 0;
  position: relative;
}
.setting-checkbox input:checked + .setting-checkbox-box {
  background: #4ec9b0;
  border-color: #4ec9b0;
}
.setting-checkbox input:checked + .setting-checkbox-box::after {
  content: '\2713';
  position: absolute;
  top: 0;
  left: 2px;
  color: #0c0c12;
  font-size: 14px;
}
.setting-checkbox-text {
  color: #d0d0e0;
}

.paxos-config {
  margin-top: 12px;
  background: #111118;
  border: 1px solid #1f1f29;
  border-radius: 0;
  padding: 12px;
  display: grid;
  gap: 12px;
}
.paxos-config.hidden {
  display: none;
}
.paxos-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8e8ea6;
  margin-bottom: 4px;
}
.paxos-field input, .paxos-field select {
  width: 100%;
  background: #0d0d14;
  border: 1px solid #252532;
  border-radius: 0;
  color: #f4f4ff;
  padding: 8px 10px;
}

.agent-status-indicator {
  font-weight: 600;
  color: #b9bad6;
  margin-left: 4px;
}
.agent-status-detail {
  color: #8e8ea6;
  font-size: 13px;
}

/* ============================================
   MODE SELECTOR CARDS - Redesigned Settings UI
   ============================================ */

/* Recommendation banner */
.mode-recommendation {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid #4fc3f7;
  border-radius: 0;
  padding: 16px;
  margin-bottom: 24px;
}

.recommendation-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #4fc3f7;
  font-size: 16px;
}

.recommendation-icon {
  font-size: 24px;
}

.recommendation-text {
  color: #e0e0f0;
  font-size: 14px;
  margin: 8px 0 12px 0;
  line-height: 1.5;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* Mode cards grid */
.mode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.mode-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #252532;
  border-radius: 0;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.mode-card:hover {
  border-color: #4fc3f7;
  box-shadow: 0 8px 20px rgba(79, 195, 247, 0.2);
}

.mode-card.selected {
  border-color: #4fc3f7;
  background: linear-gradient(135deg, #1e2a3a 0%, #1a2332 100%);
  box-shadow: 0 0 20px rgba(79, 195, 247, 0.3);
}

.mode-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.mode-card.disabled .btn-select-mode {
  opacity: 0.3;
  cursor: not-allowed;
}

.mode-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.mode-icon {
  font-size: 32px;
  line-height: 1;
}

.mode-title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #f4f4ff;
  margin: 0;
  line-height: 1.3;
}

.mode-help-btn {
  background: none;
  border: none;
  color: #8e8ea6;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  font-size: 16px;
  line-height: 1;
  transition: color 0.2s;
}

.mode-help-btn:hover {
  color: #4fc3f7;
}

.mode-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  min-height: 72px;
}

.mode-features li {
  font-size: 13px;
  line-height: 1.6;
  color: #e0e0f0;
  margin-bottom: 6px;
}

.feature-pro {
  color: #81c784;
}

.feature-con {
  color: #ffb74d;
}

.btn-select-mode {
  width: 100%;
  background: #2a2a3e;
  border: 1px solid #4fc3f7;
  color: #4fc3f7;
  padding: 10px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-select-mode:hover {
  background: #4fc3f7;
  color: #0d0d14;
}

.mode-card.selected .btn-select-mode {
  background: #4fc3f7;
  color: #0d0d14;
}

/* New Requirement Badges */
.requirements-badge {
  margin-top: 12px;
  padding: 6px 10px;
  background: rgba(79, 195, 247, 0.1);
  border-left: 3px solid #4fc3f7;
  border-radius: 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4fc3f7;
}

.requirements-badge.warning {
  background: rgba(255, 193, 7, 0.1);
  border-left-color: #ffc107;
  color: #ffc107;
}

.requirements-badge.info {
  background: rgba(156, 39, 176, 0.1);
  border-left-color: #9c27b0;
  color: #ce93d8;
}

.req-icon {
  font-size: 14px;
}

/* Mode Badges (Recommended, etc.) */
.mode-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  background: #4fc3f7;
  color: #000;
  border-radius: 0;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mode-badge.recommended-badge {
  background: linear-gradient(135deg, #4fc3f7 0%, #ffd700 100%);
}

.mode-card.recommended {
  border-color: #4fc3f7;
  box-shadow: 0 0 15px rgba(79, 195, 247, 0.2);
}

.mode-subtitle {
  font-size: 12px;
  color: #8e8ea6;
  margin: 4px 0 0 0;
  font-weight: normal;
}

/* Proxy Status Alert */
.proxy-status-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 0;
  margin-bottom: 20px;
}

.alert-icon {
  font-size: 20px;
  line-height: 1;
}

.alert-content strong {
  color: #ffc107;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.alert-content p {
  margin: 0;
  font-size: 12px;
  color: #e0e0f0;
  line-height: 1.5;
}

.alert-content code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 0;
  font-family: 'Courier New', monospace;
  color: #4fc3f7;
}

/* Advanced Options Toggle */
.advanced-options-toggle {
  margin-top: 20px;
  border: 1px solid #252532;
  border-radius: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.2);
}

.advanced-options-toggle summary {
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: #8e8ea6;
  list-style: none;
  transition: color 0.2s;
}

.advanced-options-toggle summary::-webkit-details-marker {
  display: none;
}

.advanced-options-toggle summary:hover {
  color: #4fc3f7;
}

.advanced-options-toggle[open] summary {
  color: #4fc3f7;
  border-bottom: 1px solid #252532;
}

.advanced-mode-cards {
  padding: 16px;
}

/* Proxy-Based Sub-Options */
.proxy-based-options {
  margin-top: 20px;
}

.proxy-prerequisites {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 193, 7, 0.1);
  border-left: 3px solid #ffc107;
  border-radius: 0;
  margin-bottom: 20px;
}

.prereq-icon {
  font-size: 20px;
  line-height: 1;
}

.proxy-prerequisites strong {
  color: #ffc107;
  display: block;
  margin-bottom: 6px;
}

.proxy-prerequisites ol {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #e0e0f0;
}

.proxy-prerequisites ol li {
  margin-bottom: 4px;
}

.proxy-prerequisites code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 0;
  font-family: 'Courier New', monospace;
  color: #4fc3f7;
}

.proxy-mode-label {
  display: block;
  font-size: 14px;
  color: #f4f4ff;
  margin-bottom: 12px;
  font-weight: 600;
}

/* Radio Card Group */
.radio-card-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.radio-card {
  position: relative;
  border: 2px solid #252532;
  border-radius: 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  cursor: pointer;
}

.radio-card:hover {
  border-color: #4fc3f7;
  background: rgba(79, 195, 247, 0.05);
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-card input[type="radio"]:checked + label {
  color: #4fc3f7;
}

.radio-card input[type="radio"]:checked ~ label .radio-card-header strong {
  color: #4fc3f7;
}

.radio-card:has(input[type="radio"]:checked) {
  border-color: #4fc3f7;
  background: rgba(79, 195, 247, 0.1);
  box-shadow: 0 0 15px rgba(79, 195, 247, 0.2);
}

.radio-card label {
  cursor: pointer;
  display: block;
}

.radio-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.radio-icon {
  font-size: 18px;
  line-height: 1;
}

.radio-card-header strong {
  font-size: 14px;
  color: #f4f4ff;
  transition: color 0.2s;
}

.radio-card small {
  font-size: 12px;
  color: #8e8ea6;
  line-height: 1.4;
}

/* Proxy Target Configuration */
.proxy-target-config {
  margin-top: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid #252532;
  border-radius: 0;
}

.config-field {
  margin-bottom: 16px;
}

.config-field:last-child {
  margin-bottom: 0;
}

.config-field label {
  display: block;
  font-size: 13px;
  color: #f4f4ff;
  margin-bottom: 6px;
  font-weight: 600;
}

.config-field input[type="text"],
.config-field input[type="password"],
.config-field select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #252532;
  color: #e0e0f0;
  padding: 8px 12px;
  border-radius: 0;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  transition: border-color 0.2s;
}

.config-field input[type="text"]:focus,
.config-field input[type="password"]:focus,
.config-field select:focus {
  outline: none;
  border-color: #4fc3f7;
}

.config-field small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #8e8ea6;
  line-height: 1.4;
}

/* Proxy Save Button */
.proxy-save-section {
  margin-top: 20px;
}

.save-config-btn {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #4fc3f7 0%, #4ec9b0 100%);
  border: none;
  border-radius: 0;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.save-config-btn:hover {
  box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

/* Checkbox Card Group (for multi-select) */
.checkbox-card-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.checkbox-card {
  position: relative;
  border: 2px solid #252532;
  border-radius: 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  cursor: pointer;
}

.checkbox-card:has(input[type="checkbox"]:checked) {
  border-color: #4fc3f7;
  background: rgba(79, 195, 247, 0.1);
  box-shadow: 0 0 15px rgba(79, 195, 247, 0.2);
}

.checkbox-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-card label {
  cursor: pointer;
  display: block;
  margin: 0;
}

.checkbox-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.checkbox-icon {
  font-size: 20px;
}

.checkbox-card strong {
  color: #f4f4ff;
  font-size: 14px;
}

.checkbox-card small {
  display: block;
  color: #8e8ea6;
  font-size: 12px;
  line-height: 1.4;
}

.checkbox-card:hover {
  border-color: #4fc3f7;
  background: rgba(79, 195, 247, 0.05);
}

/* Proxy Back Button */
.proxy-back-button {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #252532;
}

.back-btn {
  width: 100%;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #252532;
  border-radius: 0;
  color: #8e8ea6;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: #4fc3f7;
  color: #4fc3f7;
}

/* Mode configuration section */
.mode-config-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #252532;
}

.mode-config-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.btn-back {
  background: none;
  border: 1px solid #252532;
  color: #8e8ea6;
  padding: 6px 12px;
  border-radius: 0;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back:hover {
  border-color: #4fc3f7;
  color: #4fc3f7;
}

.mode-config-title {
  font-size: 18px;
  font-weight: 600;
  color: #f4f4ff;
  margin: 0;
}

.mode-config-content {
  background: #16162a;
  border: 1px solid #252532;
  border-radius: 0;
  padding: 20px;
}

/* Mode-specific configuration styles */
.mode-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #1a1a2e;
  border-radius: 0;
  margin-bottom: 16px;
}

.mode-status-icon {
  font-size: 24px;
}

.mode-status-text {
  flex: 1;
}

.mode-status-label {
  font-size: 12px;
  color: #8e8ea6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mode-status-value {
  font-size: 14px;
  color: #f4f4ff;
  font-weight: 600;
}

/* Model list in local mode */
.model-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.model-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #1a1a2e;
  border: 1px solid #252532;
  border-radius: 0;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.model-list-item:hover {
  border-color: #4fc3f7;
}

.model-list-item.selected {
  border-color: #4fc3f7;
  background: #1e2a3a;
}

.model-info {
  flex: 1;
}

.model-name {
  font-size: 14px;
  font-weight: 600;
  color: #f4f4ff;
  margin-bottom: 4px;
}

.model-size {
  font-size: 12px;
  color: #8e8ea6;
}

.model-select-radio {
  width: 18px;
  height: 18px;
  accent-color: #4fc3f7;
}

/* Provider selection in cloud mode */
.provider-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.provider-card {
  background: #1a1a2e;
  border: 2px solid #252532;
  border-radius: 0;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.provider-card:hover {
  border-color: #4fc3f7;
}

.provider-card.selected {
  border-color: #4fc3f7;
  box-shadow: 0 8px 20px rgba(79, 195, 247, 0.2);
}

.provider-card.configured {
  border-color: #81c784;
}

.provider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.provider-name {
  font-size: 16px;
  font-weight: 600;
  color: #f4f4ff;
}

.provider-status-badge {
  padding: 4px 10px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.provider-status-badge.configured {
  background: rgba(129, 199, 132, 0.2);
  color: #81c784;
}

.provider-status-badge.not-configured {
  background: rgba(255, 183, 77, 0.2);
  color: #ffb74d;
}

.provider-description {
  font-size: 13px;
  color: #b9bad6;
  margin-bottom: 12px;
}

.provider-model-select {
  width: 100%;
  background: #0d0d14;
  border: 1px solid #252532;
  border-radius: 0;
  color: #f4f4ff;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 8px;
}

.provider-api-key {
  width: 100%;
  background: #0d0d14;
  border: 1px solid #252532;
  border-radius: 0;
  color: #f4f4ff;
  padding: 8px 10px;
  font-size: 13px;
}

.provider-api-key.configured {
  border-color: #81c784;
}

/* Cost estimate display */
.cost-estimate {
  background: rgba(255, 183, 77, 0.1);
  border: 1px solid rgba(255, 183, 77, 0.3);
  border-radius: 0;
  padding: 12px;
  margin-top: 16px;
}

.cost-estimate-label {
  font-size: 12px;
  color: #ffb74d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.cost-estimate-value {
  font-size: 18px;
  font-weight: 600;
  color: #ffb74d;
}

.cost-estimate-detail {
  font-size: 12px;
  color: #b9bad6;
  margin-top: 4px;
}

/* Warning callouts */
.mode-warning {
  background: rgba(244, 135, 113, 0.1);
  border: 1px solid rgba(244, 135, 113, 0.3);
  border-radius: 0;
  padding: 12px 16px;
  margin: 16px 0;
}

.mode-warning-icon {
  font-size: 18px;
  margin-right: 8px;
}

.mode-warning-text {
  font-size: 13px;
  color: #f48771;
  line-height: 1.5;
}

/* Info callouts */
.mode-info {
  background: rgba(79, 195, 247, 0.1);
  border: 1px solid rgba(79, 195, 247, 0.3);
  border-radius: 0;
  padding: 12px 16px;
  margin: 16px 0;
}

.mode-info-text {
  font-size: 13px;
  color: #4fc3f7;
  line-height: 1.5;
}

/* Enhanced status indicators in agent card */
.agent-mode-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(79, 195, 247, 0.1);
  border: 1px solid rgba(79, 195, 247, 0.3);
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  color: #4fc3f7;
  margin-left: 8px;
}

.agent-privacy-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #8e8ea6;
  margin-left: 12px;
}

.agent-privacy-indicator.private {
  color: #81c784;
}

.agent-privacy-indicator.shared {
  color: #ffb74d;
}

.agent-cost-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #8e8ea6;
  margin-left: 12px;
}

.agent-cost-indicator.free {
  color: #81c784;
}

.agent-cost-indicator.paid {
  color: #ffb74d;
}

/* ===================================================================
   Tool Execution Panel Styles
   Visual representation of MCP tool executions in the dashboard
   =================================================================== */

/* Panel Container */
.tool-execution-panel {
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  background: #0d0d1a;
}

/* Empty State */
.tool-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.tool-panel-empty p {
  font-size: 16px;
  margin: 8px 0;
  color: #8e8ea6;
}

.tool-panel-empty small {
  font-size: 13px;
  color: #666;
}

/* Tool Card */
.tool-card {
  background: #16162a;
  border: 1px solid #252532;
  border-radius: 0;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.tool-card:hover {
  border-color: #4fc3f7;
  box-shadow: 0 2px 8px rgba(79, 195, 247, 0.1);
}

.tool-card[data-status="running"] {
  border-left: 3px solid #4fc3f7;
  animation: pulse 2s ease-in-out infinite;
}

.tool-card[data-status="completed"] {
  border-left: 3px solid #4caf50;
}

.tool-card[data-status="failed"] {
  border-left: 3px solid #f44336;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* Card Header */
.tool-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.tool-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.tool-icon {
  font-size: 24px;
  line-height: 1;
}

.tool-name {
  font-size: 14px;
  font-weight: 600;
  color: #f4f4ff;
  font-family: 'Courier New', monospace;
}

.tool-status {
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}

.tool-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.tool-time {
  font-size: 11px;
  color: #666;
}

.tool-duration {
  font-size: 12px;
  color: #8e8ea6;
  font-family: 'Courier New', monospace;
}

/* Progress Bar */
.tool-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tool-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0;
  overflow: hidden;
}

.tool-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4fc3f7, #4ec9b0);
  border-radius: 0;
  transition: width 0.3s ease;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}

.tool-progress-text {
  font-size: 11px;
  color: #8e8ea6;
  font-family: 'Courier New', monospace;
  min-width: 35px;
  text-align: right;
}

/* Expandable Sections */
.tool-section {
  margin-top: 8px;
}

.tool-section-toggle {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid #252532;
  border-radius: 0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: #e0e0f0;
  font-size: 12px;
  text-align: left;
}

.tool-section-toggle:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: #4fc3f7;
}

.tool-section-toggle.error {
  border-color: #f44336;
}

.tool-section-toggle.error:hover {
  border-color: #f44336;
  background: rgba(244, 67, 54, 0.1);
}

.tool-section-toggle.success {
  border-color: #4caf50;
}

.tool-section-toggle.success:hover {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

.toggle-icon {
  font-size: 10px;
  color: #8e8ea6;
  transition: transform 0.2s;
}

.section-label {
  font-weight: 600;
  color: #f4f4ff;
}

.section-preview {
  flex: 1;
  color: #8e8ea6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: 8px;
  font-family: 'Courier New', monospace;
}

.tool-section-content {
  margin-top: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.tool-section-content.hidden {
  display: none;
}

.tool-json,
.tool-result,
.tool-error {
  background: #0d0d1a;
  border: 1px solid #252532;
  border-radius: 0;
  padding: 12px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  line-height: 1.5;
  margin: 0;
  overflow-x: auto;
  color: #e0e0f0;
}

.tool-error {
  color: #f48771;
  border-color: #f44336;
  background: rgba(244, 67, 54, 0.05);
}

.tool-result {
  color: #a5d6a7;
}

/* Scrollbar Styling */
.tool-execution-panel::-webkit-scrollbar,
.tool-section-content::-webkit-scrollbar {
  width: 6px;
}

.tool-execution-panel::-webkit-scrollbar-track,
.tool-section-content::-webkit-scrollbar-track {
  background: #0d0d1a;
}

.tool-execution-panel::-webkit-scrollbar-thumb,
.tool-section-content::-webkit-scrollbar-thumb {
  background: #252532;
  border-radius: 0;
}

.tool-execution-panel::-webkit-scrollbar-thumb:hover,
.tool-section-content::-webkit-scrollbar-thumb:hover {
  background: #4fc3f7;
}

/* ===================================================================
   HITL Control Panel Styles
   Human-in-the-Loop vs Autonomous mode management UI
   =================================================================== */

/* Panel Container */
.hitl-control-panel {
  padding: 20px;
  background: #0d0d1a;
  height: 100%;
  overflow-y: auto;
}

/* Master Section */
.hitl-master-section {
  background: linear-gradient(135deg, #16162a 0%, #1a1a2e 100%);
  border: 2px solid #4fc3f7;
  border-radius: 0;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(79, 195, 247, 0.2);
}

.hitl-master-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hitl-master-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hitl-icon {
  font-size: 32px;
}

.hitl-master-title h3 {
  margin: 0;
  color: #f4f4ff;
  font-size: 20px;
}

.hitl-master-toggle {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 0;
}

.hitl-mode-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 0;
  color: #8e8ea6;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 600;
}

.hitl-mode-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f4f4ff;
}

.hitl-mode-btn.active {
  background: rgba(79, 195, 247, 0.15);
  border-color: #4fc3f7;
  color: #4fc3f7;
}

.mode-icon {
  font-size: 18px;
}

.hitl-master-desc {
  margin: 0;
  color: #8e8ea6;
  font-size: 13px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0;
}

/* Modules Section */
.hitl-modules-section {
  background: #16162a;
  border: 1px solid #252532;
  border-radius: 0;
  padding: 16px;
  margin-bottom: 16px;
}

.hitl-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #252532;
}

.hitl-section-header h4 {
  margin: 0;
  color: #f4f4ff;
  font-size: 16px;
}

.hitl-module-count {
  font-size: 12px;
  color: #8e8ea6;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 0;
}

/* Module Groups */
.hitl-module-group {
  margin-bottom: 20px;
}

.hitl-module-group:last-child {
  margin-bottom: 0;
}

.hitl-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0;
}

.hitl-group-icon {
  font-size: 16px;
}

.hitl-group-label {
  font-size: 13px;
  font-weight: 600;
  color: #f4f4ff;
}

/* Module Cards */
.hitl-module-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid #252532;
  border-radius: 0;
  padding: 12px;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.hitl-module-card:hover {
  border-color: #4fc3f7;
  background: rgba(79, 195, 247, 0.05);
}

.hitl-module-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.hitl-module-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}

.hitl-module-icon {
  font-size: 18px;
  line-height: 1;
}

.hitl-module-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hitl-module-name {
  font-size: 13px;
  font-weight: 600;
  color: #f4f4ff;
  font-family: 'Courier New', monospace;
}

.hitl-module-desc {
  font-size: 11px;
  color: #8e8ea6;
}

.hitl-inherit-badge {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border-radius: 0;
  font-weight: 600;
  text-transform: uppercase;
}

.hitl-module-capabilities {
  margin-bottom: 8px;
}

.hitl-module-capabilities small {
  color: #666;
  font-size: 11px;
}

.hitl-module-controls {
  margin-top: 8px;
}

.hitl-module-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #252532;
  color: #e0e0f0;
  padding: 6px 10px;
  border-radius: 0;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.hitl-module-select:hover {
  border-color: #4fc3f7;
}

.hitl-module-select:focus {
  outline: none;
  border-color: #4fc3f7;
}

/* Empty State */
.hitl-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.hitl-empty p {
  margin: 0 0 8px 0;
  font-size: 14px;
}

.hitl-empty small {
  font-size: 12px;
}

/* Actions */
.hitl-actions {
  display: flex;
  gap: 12px;
}

.hitl-action-btn {
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #252532;
  border-radius: 0;
  color: #8e8ea6;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}

.hitl-action-btn:hover {
  border-color: #4fc3f7;
  color: #4fc3f7;
  background: rgba(79, 195, 247, 0.1);
}

/* Approval Queue */
.hitl-approval-queue {
  padding: 16px;
  background: #16162a;
  border: 1px solid #252532;
  border-radius: 0;
}

.hitl-queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #252532;
}

.hitl-queue-header h4 {
  margin: 0;
  color: #f4f4ff;
  font-size: 16px;
}

.hitl-queue-count {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #f44336;
  padding: 4px 8px;
  border-radius: 0;
  min-width: 24px;
  text-align: center;
}

.hitl-queue-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.hitl-queue-empty p {
  margin: 0;
  font-size: 14px;
}

/* Approval Items */
.hitl-approval-item {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid #f44336;
  border-radius: 0;
  padding: 12px;
  margin-bottom: 12px;
  animation: pulse-approval 2s ease-in-out infinite;
}

@keyframes pulse-approval {
  0%, 100% { border-color: #f44336; }
  50% { border-color: #ff6b6b; }
}

.hitl-approval-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hitl-approval-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hitl-approval-icon {
  font-size: 16px;
}

.hitl-approval-title strong {
  color: #f4f4ff;
  font-size: 14px;
}

.hitl-approval-time {
  font-size: 11px;
  color: #8e8ea6;
}

.hitl-approval-details {
  margin-bottom: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0;
}

.hitl-approval-module,
.hitl-approval-capability {
  font-size: 12px;
  color: #8e8ea6;
  margin-bottom: 4px;
}

.hitl-approval-data {
  margin-bottom: 8px;
}

.hitl-data-toggle {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #252532;
  border-radius: 0;
  padding: 6px 10px;
  color: #8e8ea6;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  transition: all 0.2s;
}

.hitl-data-toggle:hover {
  border-color: #4fc3f7;
  color: #4fc3f7;
}

.hitl-data-content {
  margin-top: 8px;
  background: #0d0d1a;
  border: 1px solid #252532;
  border-radius: 0;
  padding: 8px;
  font-size: 11px;
  color: #e0e0f0;
  max-height: 200px;
  overflow-y: auto;
}

.hitl-approval-actions {
  display: flex;
  gap: 8px;
}

.hitl-approve-btn,
.hitl-reject-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.hitl-approve-btn {
  background: #4caf50;
  color: #fff;
}

.hitl-approve-btn:hover {
  background: #66bb6a;
}

.hitl-reject-btn {
  background: #f44336;
  color: #fff;
}

.hitl-reject-btn:hover {
  background: #e57373;
}

/* Scrollbar */
.hitl-control-panel::-webkit-scrollbar {
  width: 6px;
}

.hitl-control-panel::-webkit-scrollbar-track {
  background: #0d0d1a;
}

.hitl-control-panel::-webkit-scrollbar-thumb {
  background: #252532;
  border-radius: 0;
}

.hitl-control-panel::-webkit-scrollbar-thumb:hover {
  background: #4fc3f7;
}

/* ===================================================================
   Module Dashboard Styles
   Standardized widget cards for all modules
   =================================================================== */

/* Dashboard Container */
.module-dashboard {
  padding: 16px;
  background: #0d0d1a;
  height: 100%;
  overflow-y: auto;
}

/* Dashboard Header */
.module-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: #16162a;
  border: 1px solid #252532;
  border-radius: 0;
}

.dashboard-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-title h3 {
  margin: 0;
  color: #f4f4ff;
  font-size: 18px;
}

.module-count {
  font-size: 12px;
  color: #8e8ea6;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 0;
}

/* Summary Stats */
.dashboard-summary {
  display: flex;
  gap: 20px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.summary-icon {
  font-size: 10px;
}

.summary-item.active .summary-icon {
  color: #4caf50;
}

.summary-item.active .summary-label {
  color: #4caf50;
}

.summary-item.idle .summary-icon {
  color: #8e8ea6;
}

.summary-item.idle .summary-label {
  color: #8e8ea6;
}

.summary-item.error .summary-icon {
  color: #f44336;
}

.summary-item.error .summary-label {
  color: #f44336;
}

/* Dashboard Controls */
.dashboard-controls {
  display: flex;
  gap: 8px;
}

.dashboard-btn {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #252532;
  border-radius: 0;
  color: #8e8ea6;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
}

.dashboard-btn:hover {
  border-color: #4fc3f7;
  color: #4fc3f7;
  background: rgba(79, 195, 247, 0.1);
}

/* Category Filters */
.module-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #252532;
  border-radius: 0;
  color: #8e8ea6;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  text-transform: capitalize;
}

.filter-btn:hover {
  border-color: #4fc3f7;
  background: rgba(79, 195, 247, 0.05);
}

.filter-btn.active {
  background: rgba(79, 195, 247, 0.15);
  border-color: #4fc3f7;
  color: #4fc3f7;
  font-weight: 600;
}

/* Widget Grid */
.module-grid {
  display: grid;
  gap: 16px;
}

.module-grid.grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.module-grid.list {
  grid-template-columns: 1fr;
}

.module-grid-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

/* Widget Card */
.module-widget-card {
  background: #16162a;
  border: 1px solid #252532;
  border-radius: 0;
  padding: 12px;
  transition: all 0.2s;
}

.module-widget-card:hover {
  border-color: #4fc3f7;
  box-shadow: 0 2px 8px rgba(79, 195, 247, 0.15);
}

.module-widget-card.active {
  border-left: 3px solid #4caf50;
}

.module-widget-card.error {
  border-left: 3px solid #f44336;
}

.module-widget-card.minimized {
  padding: 8px 12px;
}

/* Widget Header */
.widget-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.module-widget-card.minimized .widget-card-header {
  margin-bottom: 0;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.widget-icon {
  font-size: 24px;
  line-height: 1;
}

.widget-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.widget-name {
  font-size: 13px;
  font-weight: 600;
  color: #f4f4ff;
  font-family: 'Courier New', monospace;
}

.widget-category {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Widget Actions */
.widget-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-hitl-badge {
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.widget-hitl-badge.hitl {
  background: rgba(33, 150, 243, 0.2);
  color: #4fc3f7;
}

.widget-hitl-badge.autonomous {
  background: rgba(76, 175, 80, 0.2);
  color: #81c784;
}

.widget-action-btn {
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #252532;
  border-radius: 0;
  color: #8e8ea6;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 11px;
}

.widget-action-btn:hover {
  border-color: #4fc3f7;
  color: #4fc3f7;
}

/* Widget Body */
.widget-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Widget Status */
.widget-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0;
}

.status-dot {
  font-size: 8px;
}

.widget-status.active .status-dot {
  color: #4caf50;
  animation: pulse-status 2s ease-in-out infinite;
}

.widget-status.idle .status-dot {
  color: #8e8ea6;
}

.widget-status.error .status-dot {
  color: #f44336;
}

.widget-status.loading .status-dot {
  color: #ffc107;
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text {
  color: #f4f4ff;
  font-weight: 600;
}

/* Widget Metrics */
.widget-metrics {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-primary {
  font-size: 14px;
  font-weight: 600;
  color: #4fc3f7;
  font-family: 'Courier New', monospace;
}

.metric-secondary {
  font-size: 12px;
  color: #8e8ea6;
  font-family: 'Courier New', monospace;
}

/* Widget Message */
.widget-message {
  font-size: 11px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-left: 2px solid #252532;
  border-radius: 0;
  color: #8e8ea6;
  line-height: 1.4;
}

.widget-message.error {
  background: rgba(244, 67, 54, 0.1);
  border-left-color: #f44336;
  color: #f48771;
}

/* Widget Activity */
.widget-activity {
  font-size: 11px;
  color: #666;
  font-style: italic;
}

/* Widget Controls */
.widget-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #252532;
}

.widget-control-btn {
  padding: 6px 10px;
  background: rgba(79, 195, 247, 0.1);
  border: 1px solid #4fc3f7;
  border-radius: 0;
  color: #4fc3f7;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.widget-control-btn:hover {
  background: rgba(79, 195, 247, 0.2);
}

/* Scrollbar */
.module-dashboard::-webkit-scrollbar {
  width: 6px;
}

.module-dashboard::-webkit-scrollbar-track {
  background: #0d0d1a;
}

.module-dashboard::-webkit-scrollbar-thumb {
  background: #252532;
  border-radius: 0;
}

.module-dashboard::-webkit-scrollbar-thumb:hover {
  background: #4fc3f7;
}

/* ============================================
   NEW MODEL CONFIGURATION UI STYLES
   ============================================ */

/* Auto-Detection Banner */
.auto-detect-banner {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 0;
  padding: 16px;
  margin-bottom: 24px;
}

.auto-detect-banner h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #0ff;
}

.auto-detect-status {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.detect-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #b9bad6;
}

.detect-item span:first-child {
  font-weight: bold;
  min-width: 16px;
}

/* Selected Models Section */
.selected-models-section {
  margin-bottom: 24px;
}

.selected-models-section h4 {
  font-size: 16px;
  color: #f4f4ff;
  margin: 0 0 12px 0;
}

.selected-models-list {
  min-height: 120px;
  border: 2px dashed #252532;
  border-radius: 0;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  color: #8e8ea6;
}

.empty-state p {
  margin: 4px 0;
}

.empty-state-hint {
  font-size: 12px;
  opacity: 0.7;
}

/* Model Card */
.model-card {
  background: rgba(13, 13, 20, 0.8);
  border: 1px solid #252532;
  border-radius: 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.model-card:hover {
  border-color: #0ff;
  background: rgba(0, 255, 255, 0.05);
}

.model-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.model-card-status {
  font-size: 18px;
}

.model-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.model-card-name {
  font-size: 14px;
  color: #f4f4ff;
  font-weight: 600;
}

.model-card-details {
  font-size: 12px;
  color: #8e8ea6;
}

.model-card-actions {
  display: flex;
  gap: 8px;
}

.model-card-btn {
  background: none;
  border: 1px solid #252532;
  color: #8e8ea6;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 0;
  transition: all 0.2s;
  font-size: 14px;
}

.model-card-btn:hover {
  border-color: #0ff;
  color: #0ff;
}

.model-card-btn.remove:hover {
  border-color: #ff4444;
  color: #ff4444;
}

/* Add Model Button */
.add-model-btn {
  width: 100%;
  padding: 12px;
  background: rgba(0, 255, 255, 0.1);
  border: 2px dashed #0ff;
  border-radius: 0;
  color: #0ff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.add-model-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  border-style: solid;
}

/* Consensus Section */
.consensus-section {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 0;
}

.consensus-section label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #ffd700;
  font-weight: 600;
}

.consensus-select {
  width: 100%;
  padding: 10px;
  background: #0d0d14;
  border: 1px solid #252532;
  border-radius: 0;
  color: #f4f4ff;
  font-size: 14px;
}

.consensus-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #8e8ea6;
}

/* Config Actions */
.config-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, #0ff 0%, #00d4ff 100%);
  border: none;
  border-radius: 0;
  color: #0a0a14;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid #252532;
  border-radius: 0;
  color: #8e8ea6;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: #0ff;
  color: #0ff;
}

/* Add Model Modal */
.add-model-modal-content {
  max-width: 700px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.add-model-modal-content .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Wizard Steps */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #252532;
  z-index: 0;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0d0d14;
  border: 2px solid #252532;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #8e8ea6;
  transition: all 0.2s;
}

.wizard-step.active .step-number {
  border-color: #0ff;
  color: #0ff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}

.wizard-step.completed .step-number {
  background: #0ff;
  border-color: #0ff;
  color: #0a0a14;
}

.step-label {
  font-size: 12px;
  color: #8e8ea6;
}

.wizard-step.active .step-label {
  color: #0ff;
  font-weight: 600;
}

/* Wizard Content */
.wizard-content {
  display: none;
}

.wizard-content.active {
  display: block;
}

/* Model Search */
.model-search {
  margin-bottom: 16px;
}

.model-search input {
  width: 100%;
  padding: 12px;
  background: #0d0d14;
  border: 1px solid #252532;
  border-radius: 0;
  color: #f4f4ff;
  font-size: 14px;
}

.model-search input:focus {
  outline: none;
  border-color: #0ff;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 40px 20px;
  color: #8e8ea6;
}

/* Model List Container */
.model-list-container {
  max-height: 400px;
  overflow-y: auto;
}

/* Model Group */
.model-group {
  margin-bottom: 24px;
}

.group-title {
  font-size: 13px;
  color: #0ff;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.model-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.no-models {
  padding: 16px;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 0;
  color: #ff4444;
  font-size: 13px;
  margin: 0;
}

/* Model Option */
.model-option {
  background: #0d0d14;
  border: 1px solid #252532;
  border-radius: 0;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.model-option:hover:not(.already-selected) {
  border-color: #0ff;
  background: rgba(0, 255, 255, 0.05);
}

.model-option.already-selected {
  opacity: 0.5;
  cursor: not-allowed;
}

.model-option-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.model-option input[type="radio"] {
  accent-color: #0ff;
}

.model-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.model-name {
  font-size: 14px;
  color: #f4f4ff;
  font-weight: 500;
}

.model-provider {
  font-size: 12px;
  color: #8e8ea6;
  padding: 2px 8px;
  background: rgba(142, 142, 166, 0.1);
  border-radius: 0;
}

.model-size {
  font-size: 12px;
  color: #8e8ea6;
  margin-left: auto;
}

.already-selected-badge {
  font-size: 11px;
  color: #8e8ea6;
  padding: 4px 8px;
  background: rgba(142, 142, 166, 0.1);
  border-radius: 0;
  margin-left: auto;
}

/* Query Type Options */
.query-type-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.query-type-option {
  background: #0d0d14;
  border: 1px solid #252532;
  border-radius: 0;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.query-type-option:hover:not(.disabled) {
  border-color: #0ff;
  background: rgba(0, 255, 255, 0.05);
}

.query-type-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.query-type-option input[type="radio"] {
  margin-top: 2px;
  accent-color: #0ff;
}

.query-type-info {
  flex: 1;
}

.query-type-info strong {
  display: block;
  font-size: 14px;
  color: #f4f4ff;
  margin-bottom: 4px;
}

.query-type-info p {
  font-size: 13px;
  color: #8e8ea6;
  margin: 0 0 8px 0;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
}

.status-badge.available {
  background: rgba(0, 255, 0, 0.1);
  color: #0f0;
  border: 1px solid rgba(0, 255, 0, 0.3);
}

.status-badge.unavailable {
  background: rgba(255, 68, 68, 0.1);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.3);
}

/* Step Description */
.step-description {
  font-size: 14px;
  color: #8e8ea6;
  margin-bottom: 20px;
}

/* API Key Configuration */
.api-key-config {
  padding: 20px 0;
}

.no-key-needed {
  text-align: center;
  padding: 40px 20px;
}

.no-key-needed p:first-child {
  font-size: 16px;
  color: #0f0;
  margin-bottom: 8px;
}

.no-key-needed .hint {
  font-size: 13px;
  color: #8e8ea6;
}

.api-key-reuse {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.key-choice-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #0d0d14;
  border: 1px solid #252532;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.key-choice-option:hover {
  border-color: #0ff;
  background: rgba(0, 255, 255, 0.05);
}

.key-choice-option input[type="radio"] {
  margin-top: 2px;
  accent-color: #0ff;
}

.key-choice-option strong {
  display: block;
  color: #f4f4ff;
  margin-bottom: 4px;
}

.key-choice-option p {
  font-size: 13px;
  color: #8e8ea6;
  margin: 0;
}

.new-key-input {
  margin-top: 12px;
}

.new-key-input input {
  width: 100%;
  padding: 12px;
  background: #0d0d14;
  border: 1px solid #252532;
  border-radius: 0;
  color: #f4f4ff;
  font-size: 14px;
}

.api-key-input-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.api-key-input-section strong {
  color: #f4f4ff;
  font-size: 14px;
}

.api-key-input-section .hint {
  font-size: 12px;
  color: #8e8ea6;
}

.api-key-input-section input {
  width: 100%;
  padding: 12px;
  background: #0d0d14;
  border: 1px solid #252532;
  border-radius: 0;
  color: #f4f4ff;
  font-size: 14px;
}

.api-key-input-section small {
  font-size: 11px;
  color: #8e8ea6;
}

/* Proxy Key Status */
.proxy-key-check {
  padding: 20px;
  text-align: center;
}

.proxy-key-status {
  padding: 20px;
  border-radius: 0;
  text-align: center;
}

.proxy-key-status.success {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.3);
}

.proxy-key-status.error {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
}

.proxy-key-status strong {
  display: block;
  margin-bottom: 8px;
}

.proxy-key-status.success strong {
  color: #0f0;
}

.proxy-key-status.error strong {
  color: #ff4444;
}

.proxy-key-status .hint {
  font-size: 13px;
  color: #8e8ea6;
  margin: 8px 0;
}

.proxy-key-status code {
  display: block;
  padding: 8px 12px;
  background: #0d0d14;
  border: 1px solid #252532;
  border-radius: 0;
  color: #0ff;
  font-size: 12px;
  margin: 12px 0;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid #252532;
  gap: 12px;
}

/* Hide Legacy Mode Cards by Default */
.legacy-mode-cards {
  display: none;
}

/* ============================================
   SINGLE-SCREEN MODEL PICKER STYLES
   ============================================ */

/* Model Picker Section */
.model-picker-section {
  padding: 0;
}

/* Selected Models Chips (Top) */
.selected-models-chips {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #252532;
}

.selected-models-chips h4 {
  font-size: 14px;
  color: #8e8ea6;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
}

.empty-chips-state {
  width: 100%;
  text-align: center;
  padding: 20px;
  color: #ff9500;
  font-size: 13px;
  background: rgba(255, 149, 0, 0.05);
  border: 1px dashed rgba(255, 149, 0, 0.3);
  border-radius: 0;
}

.empty-chips-state p {
  margin: 0;
}

/* Model Chips */
.model-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 0;
  font-size: 12px;
  color: #f4f4ff;
  transition: all 0.2s;
}

.model-chip:hover {
  background: rgba(0, 255, 255, 0.15);
  border-color: #0ff;
}

.chip-icon {
  font-size: 14px;
}

.chip-name {
  font-weight: 500;
}

.chip-method {
  color: #8e8ea6;
  font-size: 11px;
}

.chip-remove {
  background: none;
  border: none;
  color: #ff5555;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 2px;
  line-height: 1;
  transition: color 0.2s;
}

.chip-remove:hover {
  color: #ff0000;
}

/* Available Models Section */
.available-models-section h4 {
  font-size: 16px;
  color: #f4f4ff;
  margin-bottom: 16px;
}

.hint-text {
  font-size: 12px;
  color: #8e8ea6;
  font-weight: normal;
  margin-left: 8px;
}

/* Provider Rows */
.providers-row,
.local-models-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

/* Provider Card */
.provider-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #252532;
  border-radius: 0;
  transition: all 0.2s;
  overflow: hidden;
}

.provider-card:hover {
  border-color: rgba(0, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.provider-card.available {
  border-color: rgba(0, 255, 0, 0.2);
}

/* Provider Card Header (Clickable) */
.provider-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.provider-card-header:hover {
  background: rgba(0, 255, 255, 0.05);
}

.provider-icon {
  font-size: 24px;
  min-width: 32px;
  text-align: center;
}

.provider-card-header h5 {
  flex: 1;
  margin: 0;
  font-size: 16px;
  color: #f4f4ff;
  font-weight: 600;
}

.provider-status {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.provider-status.detected {
  background: rgba(0, 255, 0, 0.1);
  color: #00ff00;
  border: 1px solid rgba(0, 255, 0, 0.3);
}

.provider-status.configured {
  background: rgba(0, 255, 255, 0.1);
  color: #0ff;
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.provider-status.verifying {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
  animation: pulse 1.5s infinite;
}

.provider-status.unavailable {
  background: rgba(255, 85, 85, 0.1);
  color: #ff5555;
  border: 1px solid rgba(255, 85, 85, 0.3);
}

.provider-status.error {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
  border: 1px solid rgba(255, 0, 0, 0.3);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Provider Card Body (Expandable) */
.provider-card-body {
  padding: 0 16px 16px;
  border-top: 1px solid #252532;
}

.provider-card-body.hidden {
  display: none;
}

/* API Key Input Group */
.api-key-input-group {
  margin-bottom: 16px;
}

.api-key-input-group label {
  display: block;
  font-size: 12px;
  color: #8e8ea6;
  margin-bottom: 6px;
}

.api-key-input-group input {
  width: calc(100% - 90px);
  padding: 10px;
  background: #0d0d14;
  border: 1px solid #252532;
  border-radius: 0 0 0 6px;
  color: #f4f4ff;
  font-size: 13px;
  font-family: 'Courier New', monospace;
}

.api-key-input-group input:focus {
  outline: none;
  border-color: #0ff;
}

.btn-verify {
  width: 80px;
  padding: 10px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-left: none;
  border-radius: 0 6px 6px 0;
  color: #0ff;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: -4px;
}

.btn-verify:hover {
  background: rgba(0, 255, 255, 0.2);
  border-color: #0ff;
}

/* Models List (Checkboxes) */
.models-list {
  margin-bottom: 16px;
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0;
}

.models-list.hidden {
  display: none;
}

.model-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s;
}

.model-checkbox:hover {
  background: rgba(255, 255, 255, 0.03);
}

.model-checkbox input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.model-checkbox .model-name {
  flex: 1;
  font-size: 13px;
  color: #f4f4ff;
}

.model-checkbox .model-tier {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.model-tier.fast {
  background: rgba(0, 255, 0, 0.1);
  color: #00ff00;
}

.model-tier.balanced {
  background: rgba(0, 255, 255, 0.1);
  color: #0ff;
}

.model-tier.advanced {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
}

.model-tier.local,
.model-tier.browser {
  background: rgba(138, 43, 226, 0.1);
  color: #8a2be2;
}

/* Query Method */
.query-method {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0;
}

.query-method label:first-child {
  display: block;
  font-size: 12px;
  color: #8e8ea6;
  margin-bottom: 8px;
}

.query-method label:not(:first-child) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  font-size: 13px;
  color: #f4f4ff;
  cursor: pointer;
}

.query-method input[type="radio"] {
  cursor: pointer;
}

/* Add Selected Button */
.btn-add-selected {
  width: 100%;
  padding: 10px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 0;
  color: #0ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-selected:hover:not(:disabled) {
  background: rgba(0, 255, 255, 0.2);
  border-color: #0ff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

.btn-add-selected:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Disabled Goal Input */
.disabled-goal-input {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 85, 85, 0.05) !important;
  border-color: rgba(255, 85, 85, 0.3) !important;
}

/* Remove old wizard styles (keep for legacy compatibility but hide) */
.wizard-steps,
.wizard-content,
.add-model-modal {
  display: none !important;
}

/* Auto-Approve Toggle Card */
.auto-approve-card {
  position: relative;
}

.auto-approve-card:hover {
  background: rgba(78, 201, 176, 0.12) !important;
  border-color: rgba(78, 201, 176, 0.4) !important;
  box-shadow: 0 4px 12px rgba(78, 201, 176, 0.2);
}

.auto-approve-card[data-enabled="true"] {
  background: rgba(78, 201, 176, 0.15) !important;
  border-color: #4ec9b0 !important;
  box-shadow: 0 0 20px rgba(78, 201, 176, 0.3);
}

.auto-approve-card[data-enabled="true"]::before {
  content: '✓';
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  color: #4ec9b0;
  font-weight: bold;
  animation: checkmark-pop 0.3s ease;
}

@keyframes checkmark-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.auto-approve-card[data-enabled="false"]::before {
  content: '';
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(78, 201, 176, 0.3);
  border-radius: 0;
}

/* Compact Auto-Approve Card */
.auto-approve-card-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(78, 201, 176, 0.08);
  border: 2px solid rgba(78, 201, 176, 0.2);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 16px;
  position: relative;
  user-select: none;
}

.auto-approve-card-compact:hover {
  background: rgba(78, 201, 176, 0.12);
  border-color: rgba(78, 201, 176, 0.4);
  box-shadow: 0 2px 8px rgba(78, 201, 176, 0.2);
}

.auto-approve-card-compact[data-enabled="true"] {
  background: rgba(78, 201, 176, 0.15);
  border-color: #4ec9b0;
  box-shadow: 0 0 15px rgba(78, 201, 176, 0.25);
}

.auto-approve-card-compact[data-enabled="true"]::after {
  content: '[X]';
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 14px;
  color: #4ec9b0;
  font-weight: bold;
  animation: checkmark-pop 0.3s ease;
}

.auto-approve-card-compact[data-enabled="false"]::after {
  content: '[ ]';
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(78, 201, 176, 0.4);
}

.auto-approve-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auto-approve-label {
  font-size: 14px;
  font-weight: 600;
  color: #4ec9b0;
}

.auto-approve-hint {
  font-size: 11px;
  color: #888;
  line-height: 1.3;
}

/* ========================================
   Provider Status Bar - Read-Only Display
   ======================================== */

.provider-status-bar {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(0, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 0;
  margin: 24px 0 16px 0;
  flex-wrap: wrap;
}

.provider-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 0;
  flex: 1;
  min-width: 150px;
  transition: all 0.2s ease;
}

.provider-status-item:hover {
  background: rgba(0, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.3);
}

.provider-status-icon {
  font-size: 14px;
  color: #666;
  transition: color 0.3s ease;
}

.provider-status-icon.online {
  color: #4ec9b0;
}

.provider-status-icon.offline {
  color: #e74856;
}

.provider-status-label {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
}

.provider-status-value {
  font-size: 12px;
  color: #aaa;
  margin-left: auto;
  font-weight: 400;
}

.provider-status-value.online {
  color: #4ec9b0;
}

.provider-status-value.offline {
  color: #e74856;
}

/* ========================================
   Model Cards Container - Inline UI
   ======================================== */

.model-cards-container {
  margin: 0 0 24px 0;
  padding: 20px;
  background: rgba(0, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 0;
}

.model-cards-title {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 600;
}

/* Model Cards List - Grid Layout */
.model-cards-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

/* Individual Model Card */
.model-card {
  position: relative;
  background: rgba(40, 40, 40, 0.4);
  border: 2px solid rgba(80, 80, 80, 0.3);
  border-radius: 0;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.model-card:hover {
  background: rgba(60, 60, 60, 0.5);
  border-color: rgba(150, 150, 150, 0.5);
  box-shadow: 0 4px 12px rgba(80, 80, 80, 0.3);
}

.model-card-provider {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.model-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  word-break: break-word;
}

.model-card-connection {
  font-size: 11px;
  color: #4ec9b0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.model-card-connection::before {
  content: '●';
  font-size: 8px;
}

.model-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.model-card-btn {
  flex: 1;
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  color: var(--color-text-primary);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.model-card-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-primary);
}

.model-card-btn.remove:hover {
  background: rgba(231, 72, 86, 0.2);
  border-color: #e74856;
  color: #e74856;
}

/* Add Model Card - Outlined/Dashed Style */
.add-model-card {
  background: transparent;
  border: 2px dashed rgba(0, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  transition: all 0.3s ease;
}

.add-model-card:hover {
  background: rgba(60, 60, 60, 0.5);
  border-color: rgba(150, 150, 150, 0.5);
  border-style: solid;
  box-shadow: 0 4px 12px rgba(80, 80, 80, 0.3);
}

.add-model-icon {
  font-size: 32px;
  color: var(--color-primary);
  line-height: 1;
}

.add-model-text {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
}

/* Consensus Section */
.consensus-section {
  padding: 16px;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 0;
  margin-top: 16px;
}

.consensus-section label {
  display: block;
  font-size: 13px;
  color: var(--color-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.consensus-select {
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 0;
  color: var(--color-text-primary);
  font-size: 13px;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s ease;
}

.consensus-select option {
  background: #1e1e1e;
  color: var(--color-text-primary);
  padding: 8px;
}

.consensus-select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

/* Inline Model Form */
.model-form-inline {
  margin-top: 16px;
  padding: 20px;
  background: rgba(0, 255, 255, 0.05);
  border: 2px solid var(--color-primary);
  border-radius: 0;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

.model-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.model-form-header h5 {
  margin: 0;
  font-size: 15px;
  color: var(--color-primary);
  font-weight: 600;
}

.close-btn-small {
  background: none;
  border: none;
  color: #888;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-btn-small:hover {
  color: var(--color-primary);
}

.inline-form-row {
  margin-bottom: 16px;
}

.inline-form-row label {
  display: block;
  font-size: 12px;
  color: var(--color-text-primary);
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inline-select,
.inline-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  color: var(--color-text-primary);
  font-size: 14px;
  font-family: var(--font-family);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.inline-select option {
  background: #1e1e1e;
  color: var(--color-text-primary);
  padding: 8px;
}

.inline-select:focus,
.inline-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.1);
}

.inline-input::placeholder {
  color: #666;
}

.inline-host-type {
  padding: 10px 12px;
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 0;
  color: var(--color-primary);
  font-size: 13px;
}

.inline-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.inline-btn-cancel,
.inline-btn-save {
  flex: 1;
  padding: 10px 16px;
  border-radius: 0;
  font-size: 13px;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-weight: 500;
}

.inline-btn-save {
  background: var(--color-primary);
  color: #0a0a14;
}

.inline-btn-save:hover:not(:disabled) {
  background: #00e6e6;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
}

.inline-btn-save:disabled {
  background: rgba(0, 255, 255, 0.3);
  cursor: not-allowed;
  opacity: 0.5;
}

.inline-btn-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.inline-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .model-cards-list {
    grid-template-columns: 1fr;
  }

  .model-modal-content {
    max-width: 100%;
  }
}
