#rhPage {
  display: none;
  padding: 0;
  width: 100%;
  min-height: 100%;
  position: relative;
  background: #090d12;
  color: #d9e2f0;
  visibility: visible !important;
  opacity: 1 !important;
}

#rhPage.active {
  display: block;
}

#rhPage .rh-shell {
  width: 100%;
  min-width: 0;
  padding: 8px;
  box-sizing: border-box;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#rhPage .rh-shell,
#rhPage .rh-shell * {
  box-sizing: border-box;
  visibility: visible !important;
  opacity: 1 !important;
}

#rhPage .rh-page-header {
  display: flex !important;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 2px 2px 6px;
}

#rhPage .rh-page-header-main {
  min-width: 0;
}

#rhSettingsModal .rh-card-kicker {
  margin: 0 0 4px;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #72a7ff;
}

#rhPage .rh-page-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: #f2f7ff;
}

#rhPage .rh-page-header-actions,
#rhPage .rh-actions,
#rhSettingsModal .rh-actions,
#rhSettingsModal .rh-subpanel-head,
#rhSettingsModal .rh-inline-field,
#rhSettingsModal .rh-image-controls {
  display: flex !important;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

#rhPage .rh-top-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(129, 146, 176, 0.12);
  color: #93a4bf;
  font-size: 10px;
}

#rhPage .rh-top-stat-value {
  color: #eef4ff;
  font-weight: 700;
}

#rhPage .rh-dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

#rhPage .rh-card,
#rhSettingsModal .rh-subpanel {
  width: 100%;
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(107, 124, 153, 0.16);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(16, 23, 35, 0.97) 0%, rgba(10, 15, 24, 0.98) 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: block !important;
}

#rhPage .rh-card-results {
  padding: 8px;
  border-color: rgba(98, 127, 178, 0.18);
}

#rhPage .rh-card-workspace {
  padding: 8px 10px;
  border-color: rgba(92, 124, 185, 0.2);
}

#rhPage .rh-card-inputs {
  border-color: rgba(82, 138, 255, 0.28);
  background: linear-gradient(180deg, rgba(14, 23, 36, 0.98) 0%, rgba(10, 17, 27, 0.98) 100%);
  min-height: 180px;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

#rhPage .rh-card-header,
#rhSettingsModal .rh-modal-header,
#rhSettingsModal .rh-subpanel-head {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

#rhPage .rh-card-header-tight {
  margin-bottom: 10px;
}

#rhPage .rh-card-title,
#rhSettingsModal .rh-card-title {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  color: #eff4ff;
}

#rhSettingsModal .rh-subpanel-title {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
  color: #eaf1fd;
  font-weight: 700;
}

#rhPage .rh-toolbar-chip-group,
#rhPage .rh-workspace-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

#rhPage .rh-toolbar-chip,
#rhPage .rh-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
}

#rhPage .rh-toolbar-chip,
#rhPage .rh-status-pill-muted {
  background: rgba(255, 255, 255, 0.04);
  color: #93a4bf;
  border: 1px solid rgba(129, 146, 176, 0.12);
}

#rhPage .rh-status-pill-info {
  background: rgba(47, 109, 246, 0.14);
  color: #c9ddff;
  border: 1px solid rgba(82, 138, 255, 0.24);
}

#rhPage .rh-status-pill-success {
  background: rgba(35, 173, 116, 0.14);
  color: #c7f4df;
  border: 1px solid rgba(72, 198, 138, 0.26);
}

#rhPage .rh-status-pill-danger {
  background: rgba(223, 77, 77, 0.14);
  color: #ffd0d0;
  border: 1px solid rgba(227, 102, 102, 0.24);
}

#rhPage .rh-status-pill-warn {
  background: rgba(212, 157, 56, 0.15);
  color: #ffe5b4;
  border: 1px solid rgba(214, 166, 72, 0.24);
}

#rhPage .rh-workspace-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

#rhPage .rh-workspace-primary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

#rhPage .rh-workspace-app {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

#rhPage .rh-workspace-switcher {
  margin-top: 0;
  width: min(100%, 360px);
}

#rhPage .rh-workspace-switcher .dark-select {
  width: 100%;
}

#rhPage .rh-inline-inputs-shell {
  margin-top: 10px;
  padding: 6px 0 0;
  border: none;
  border-radius: 0;
  background: transparent;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

#rhPage #rhImageInputs,
#rhPage #rhDynamicInputs {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: min(100%, 720px) !important;
  margin: 0 auto !important;
  min-width: 0 !important;
  min-height: 20px !important;
}

#rhPage .rh-inline-inputs-shell {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(99, 117, 151, 0.16);
}

#rhPage .rh-workspace-app-name {
  margin: 4px 0 6px;
  color: #f2f6ff;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
}

#rhPage .rh-workspace-status-grid,
#rhPage .rh-stat-grid,
#rhSettingsModal .rh-stat-grid,
#rhSettingsModal .rh-form-grid,
#rhPage .rh-form-grid,
#rhPage .rh-dynamic-inputs,
#rhPage .rh-result-list,
#rhPage .rh-task-list,
#rhSettingsModal .rh-form-grid-run {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px;
}

#rhPage .rh-workspace-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin-top: 2px;
}

#rhPage .rh-workspace-actions .rh-btn {
  min-width: 110px;
}

#rhPage .rh-workspace-actions .rh-btn-hero {
  min-width: 140px;
}

#rhPage .rh-progress-shell {
  margin-top: 8px;
  width: min(100%, 460px);
}

#rhPage .rh-run-status-text {
  margin-bottom: 4px;
  color: #d8e6ff;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
}

#rhPage .rh-progress-meta {
  margin-bottom: 6px;
  font-size: 9px;
  color: #9fb0cb;
}

#rhPage .rh-progress-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#rhPage .rh-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f6df6 0%, #55c4ff 100%);
  transition: width 0.24s ease;
}

#rhPage .rh-workspace-status-grid,
#rhPage .rh-workspace-actions,
#rhPage .rh-stat-grid,
#rhSettingsModal .rh-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#rhPage .rh-form-grid,
#rhSettingsModal .rh-form-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

#rhSettingsModal .rh-form-grid-run {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#rhPage .rh-field,
#rhPage .rh-check-field,
#rhSettingsModal .rh-field,
#rhSettingsModal .rh-check-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#rhPage .rh-check-field-inline,
#rhSettingsModal .rh-check-field-inline {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(84, 103, 135, 0.24);
  border-radius: 7px;
  background: #0b1119;
}

#rhPage .rh-field-full,
#rhSettingsModal .rh-field-full {
  grid-column: 1 / -1;
}

#rhPage .rh-label,
#rhSettingsModal .rh-label {
  font-size: 10px;
  line-height: 1.2;
  color: #8ea0bc;
}

#rhPage .rh-input,
#rhPage .rh-select,
#rhPage .rh-textarea,
#rhSettingsModal .rh-input,
#rhSettingsModal .rh-select,
#rhSettingsModal .rh-textarea {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid rgba(84, 103, 135, 0.34);
  border-radius: 7px;
  background: #0b1119;
  color: #edf4ff;
  font-size: 11px;
  line-height: 1.35;
}

#rhPage .rh-textarea,
#rhSettingsModal .rh-textarea {
  min-height: 72px;
  resize: vertical;
}

#rhPage .rh-input:focus,
#rhPage .rh-select:focus,
#rhPage .rh-textarea:focus,
#rhSettingsModal .rh-input:focus,
#rhSettingsModal .rh-select:focus,
#rhSettingsModal .rh-textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.85);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.14);
}

#rhPage .rh-inline-field,
#rhSettingsModal .rh-inline-field {
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

#rhPage .rh-btn,
#rhSettingsModal .rh-btn {
  appearance: none;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#rhPage .rh-btn-hero {
  min-height: 34px;
  font-size: 11px;
}

#rhPage .rh-btn-primary,
#rhSettingsModal .rh-btn-primary {
  background: linear-gradient(180deg, #2f6df6 0%, #2356c8 100%);
  color: #fff;
  border-color: rgba(82, 138, 255, 0.72);
}

#rhPage .rh-btn-secondary,
#rhSettingsModal .rh-btn-secondary {
  background: #141c29;
  color: #d9e6fb;
  border-color: rgba(91, 110, 145, 0.5);
}

#rhPage .rh-btn-ghost,
#rhSettingsModal .rh-btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: #bac8e0;
  border-color: rgba(128, 146, 176, 0.18);
}

#rhPage .rh-btn:hover,
#rhSettingsModal .rh-btn:hover {
  filter: brightness(1.05);
}

#rhPage .rh-note,
#rhSettingsModal .rh-note {
  padding: 7px 8px;
  border: 1px solid rgba(103, 123, 156, 0.12);
  border-radius: 7px;
  background: rgba(7, 12, 20, 0.82);
  color: #90a2be;
  font-size: 10px;
  line-height: 1.45;
}

#rhPage .rh-note-inline {
  margin-top: 8px;
}

#rhPage .rh-progress-shell {
  margin-top: 8px;
  width: min(100%, 520px);
}

#rhPage .rh-progress-meta {
  margin-bottom: 6px;
  font-size: 10px;
  color: #a7b5d0;
}

#rhPage .rh-progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#rhPage .rh-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(90deg, #2f6df6 0%, #55c4ff 100%);
  transition: width 0.24s ease;
}

#rhPage #rhInputSummary {
  width: min(100%, 720px);
  margin: 8px auto 0;
}

#rhPage .rh-focus-meta {
  margin-top: 8px;
  padding: 6px 8px;
  border-left: 2px solid rgba(82, 138, 255, 0.7);
  background: rgba(10, 16, 27, 0.7);
  color: #dce8ff;
  font-size: 10px;
  line-height: 1.4;
  width: min(100%, 720px);
  margin-left: auto;
  margin-right: auto;
}

#rhPage .rh-stat-card,
#rhSettingsModal .rh-stat-card {
  padding: 8px;
  border: 1px solid rgba(98, 116, 149, 0.16);
  border-radius: 8px;
  background: #0c121b;
}

#rhPage .rh-stat-label,
#rhSettingsModal .rh-stat-label {
  display: block;
  margin-bottom: 4px;
  font-size: 9px;
  line-height: 1.1;
  color: #7f93b3;
}

#rhPage .rh-stat-value,
#rhSettingsModal .rh-stat-value {
  font-size: 13px;
  line-height: 1.2;
  color: #f3f7ff;
}

#rhPage .rh-input-group-card {
  padding: 8px;
  border: 1px solid rgba(97, 117, 151, 0.14);
  border-radius: 8px;
  background: #0d141f;
}

#rhPage #rhImageInputs,
#rhPage #rhDynamicInputs {
  min-height: 64px;
}

#rhPage .rh-input-group-card .dark-input,
#rhPage .rh-input-group-card .dark-select {
  width: 100%;
  margin-top: 2px;
}

#rhPage .rh-native-field-wrap {
  display: block;
  width: 100%;
}

#rhPage .rh-native-field {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 32px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(84, 103, 135, 0.34) !important;
  border-radius: 7px !important;
  background: #0b1119 !important;
  color: #edf4ff !important;
  box-sizing: border-box !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#rhPage .rh-dynamic-textarea {
  min-height: 88px !important;
  resize: vertical;
  font-family: inherit;
  line-height: 1.45;
}

#rhPage .rh-input-group-card .auto-expand-toggle {
  margin-top: 4px;
  margin-left: 0;
}

#rhPage .rh-input-group-card.is-required {
  border-color: rgba(77, 128, 223, 0.34);
}

#rhPage .rh-input-header {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

#rhPage .rh-input-title {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  color: #edf4ff;
}

#rhPage .rh-input-meta {
  font-size: 9px;
  line-height: 1.2;
  color: #7487a8;
}

#rhPage .rh-image-controls {
  margin-top: 8px;
}

#rhPage .rh-image-preview {
  width: 100%;
  min-height: 110px;
  border: 1px dashed rgba(92, 113, 149, 0.26);
  border-radius: 8px;
  background: #091018;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#rhPage .rh-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#rhPage .rh-result-preview-shell {
  min-height: 170px;
  border: 1px solid rgba(95, 114, 149, 0.18);
  border-radius: 8px;
  background: #071018;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#rhPage .rh-result-empty {
  padding: 18px;
  text-align: center;
  font-size: 11px;
  color: #7e95b6;
}

#rhPage .rh-result-preview-image,
#rhPage .rh-result-preview-video {
  width: 100%;
  max-height: 260px;
  display: block;
  object-fit: contain;
  background: #000;
}

#rhPage .rh-result-preview-audio {
  width: calc(100% - 16px);
  display: block;
}

#rhPage .rh-result-list,
#rhPage .rh-task-list {
  margin-top: 8px;
}

#rhPage .rh-dynamic-inputs-prominent {
  margin-top: 8px;
}

#rhPage .rh-actions-wrap,
#rhPage .rh-panel-body {
  margin-top: 8px;
}

#rhSettingsModal.rh-settings-panel {
  color: #d9e2f0;
  width: 94vw !important;
  max-width: 520px !important;
  max-height: 90vh !important;
  min-width: 320px;
  display: none;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  z-index: 10000 !important;
  background: #0b1220 !important;
  border: 1px solid #1e293b !important;
  border-radius: 10px !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
  box-sizing: border-box !important;
}

#rhSettingsModal.rh-settings-panel .rh-modal-header {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 10px 7px !important;
  margin: 0 !important;
  background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
  border-bottom: 1px solid #1e293b;
}

#rhSettingsModal.rh-settings-panel .rh-modal-body {
  position: relative;
  padding: 6px 6px 8px !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.72) rgba(15, 23, 42, 0.35);
}

#rhSettingsModal.rh-settings-panel .rh-modal-body::after {
  content: '';
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  height: 22px;
  margin-top: -22px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 0%, rgba(11, 18, 32, 0.92) 100%);
}

#rhSettingsModal.rh-settings-panel .rh-modal-body::-webkit-scrollbar {
  width: 10px;
}

#rhSettingsModal.rh-settings-panel .rh-modal-body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.35);
  border-radius: 999px;
}

#rhSettingsModal.rh-settings-panel .rh-modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.9) 0%, rgba(59, 130, 246, 0.82) 100%);
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.25);
}

#rhSettingsModal.rh-settings-panel .rh-modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(125, 184, 255, 0.95) 0%, rgba(72, 149, 255, 0.9) 100%);
}

#rhSettingsModal.rh-settings-panel .rh-subpanel {
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(97, 117, 151, 0.14);
  background: #0d141f;
  width: 100%;
}

#rhSettingsModal.rh-settings-panel .rh-settings-block {
  margin: 0;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid rgba(97, 117, 151, 0.14);
  background: #0d141f;
}

#rhSettingsModal.rh-settings-panel .rh-settings-title {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 700;
  color: #eaf1fd;
}

#rhSettingsModal.rh-settings-panel .rh-legacy-label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  color: #8ea0bc;
}

#rhSettingsModal.rh-settings-panel .dark-input,
#rhSettingsModal.rh-settings-panel .dark-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 32px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 7px 9px !important;
  border: 1px solid rgba(84, 103, 135, 0.34) !important;
  border-radius: 7px !important;
  background: #0b1119 !important;
  color: #edf4ff !important;
  box-sizing: border-box !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif !important;
}

#rhSettingsModal.rh-settings-panel .dark-select option,
#rhSettingsModal.rh-settings-panel .dark-select optgroup {
  background: #0b1119 !important;
  color: #edf4ff !important;
}

#rhSettingsModal.rh-settings-panel .dark-input:focus,
#rhSettingsModal.rh-settings-panel .dark-select:focus {
  outline: none !important;
  border-color: rgba(96, 165, 250, 0.85) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.14) !important;
}

#rhSettingsModal.rh-settings-panel .dark-input::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}

#rhSettingsModal.rh-settings-panel .rh-settings-grid-legacy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

#rhSettingsModal.rh-settings-panel .config-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 3px;
  margin-bottom: 5px;
}

#rhSettingsModal.rh-settings-panel .form-group {
  margin-bottom: 5px;
}

#rhSettingsModal.rh-settings-panel .auto-expand-toggle {
  display: flex !important;
  align-items: center;
  margin: 3px 0 0 !important;
}

#rhSettingsModal.rh-settings-panel .toggle-label {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

#rhSettingsModal.rh-settings-panel .toggle-label input[type="checkbox"] {
  margin: 0 !important;
}

#rhSettingsModal.rh-settings-panel .toggle-text {
  color: #d9e2f0 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

#rhSettingsModal.rh-settings-panel textarea.dark-input {
  min-height: 140px !important;
  resize: vertical;
  font-family: Consolas, Monaco, monospace;
  line-height: 1.45;
}

#rhSettingsModal.rh-settings-panel .rh-form-grid,
#rhSettingsModal.rh-settings-panel .rh-form-grid-run {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 8px;
}

#rhSettingsModal.rh-settings-panel .rh-field,
#rhSettingsModal.rh-settings-panel .rh-check-field {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#rhSettingsModal.rh-settings-panel .rh-field-full {
  grid-column: 1 / -1;
}

#rhSettingsModal.rh-settings-panel input,
#rhSettingsModal.rh-settings-panel select,
#rhSettingsModal.rh-settings-panel textarea,
#rhSettingsModal.rh-settings-panel button {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  box-sizing: border-box !important;
}

#rhSettingsModal.rh-settings-panel .rh-input,
#rhSettingsModal.rh-settings-panel .rh-select,
#rhSettingsModal.rh-settings-panel .rh-textarea {
  appearance: none;
  -webkit-appearance: none;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 32px !important;
  height: auto !important;
  padding: 7px 9px !important;
  border: 1px solid rgba(84, 103, 135, 0.34) !important;
  border-radius: 7px !important;
  background: #0b1119 !important;
  color: #edf4ff !important;
}

#rhSettingsModal.rh-settings-panel .rh-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
}

#rhPage .rh-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(97, 116, 149, 0.14);
  border-radius: 8px;
  background: #0c131d;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

#rhPage .rh-list-item:hover {
  border-color: rgba(107, 136, 189, 0.28);
  background: #101925;
}

#rhPage .rh-result-item.is-active {
  border-color: rgba(78, 131, 241, 0.44);
  background: linear-gradient(180deg, rgba(20, 32, 51, 0.98) 0%, rgba(12, 20, 32, 0.98) 100%);
  box-shadow: inset 2px 0 0 rgba(78, 131, 241, 0.9);
}

#rhPage .rh-task-status-done {
  border-color: rgba(44, 168, 120, 0.24);
}

#rhPage .rh-task-status-failed {
  border-color: rgba(220, 74, 74, 0.26);
}

#rhPage .rh-task-status-cancelled {
  border-color: rgba(214, 157, 55, 0.24);
}

#rhPage .rh-list-main {
  min-width: 0;
  flex: 1;
}

#rhPage .rh-list-title {
  margin-bottom: 3px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  color: #eef4ff;
}

#rhPage .rh-list-subtitle {
  font-size: 9px;
  line-height: 1.45;
  color: #8195b5;
  word-break: break-all;
}

#rhPage .rh-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(81, 133, 240, 0.24);
  background: rgba(37, 99, 235, 0.12);
  color: #bdd5ff;
  font-size: 9px;
}

#rhPage .rh-log-window {
  display: block;
  width: 100%;
  min-height: 160px;
  padding: 8px;
  resize: vertical;
  border: 1px solid rgba(97, 116, 149, 0.2);
  border-radius: 8px;
  background: #060c13;
  color: #d0def8;
  font: 10px/1.55 Consolas, Monaco, monospace;
}

#rhPage .rh-log-window:focus {
  outline: none;
}

@media (min-width: 420px) {
  #rhPage .rh-page-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  #rhPage .rh-workspace-summary {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  #rhPage .rh-form-grid,
  #rhSettingsModal .rh-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #rhPage .rh-field-full,
  #rhSettingsModal .rh-field-full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 320px) {
  #rhPage .rh-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #rhPage .rh-inline-field,
  #rhSettingsModal .rh-inline-field,
  #rhPage .rh-workspace-actions,
  #rhPage .rh-workspace-status-grid,
  #rhPage .rh-stat-grid,
  #rhSettingsModal .rh-stat-grid,
  #rhSettingsModal .rh-form-grid-run {
    grid-template-columns: 1fr;
  }
}
