/* 呼吸系统主模块样式。所有规则以 .breath-system-root 隔离，不影响全局样式。 */

.breath-system-root {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.breath-system-root .bs-header h2 {
  margin: 0 0 4px;
}

.breath-system-root .bs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line, #2a3a46);
  padding-bottom: 8px;
}

.breath-system-root .bs-tab {
  border: 1px solid var(--line, #2a3a46);
  background: transparent;
  color: inherit;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
}

.breath-system-root .bs-tab.active {
  background: var(--accent, #f15b2a);
  border-color: var(--accent, #f15b2a);
  color: #fff;
}

.breath-system-root .bs-content {
  min-height: 240px;
}

.breath-system-root .bs-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
}

.breath-system-root .bs-steps li {
  border: 1px solid var(--line, #2a3a46);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  opacity: 0.65;
}

.breath-system-root .bs-steps li.active {
  opacity: 1;
  border-color: var(--accent, #f15b2a);
  color: var(--accent, #f15b2a);
}

.breath-system-root .bs-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px 16px;
  margin: 12px 0;
}

.breath-system-root .bs-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.breath-system-root .bs-field input,
.breath-system-root .bs-field select {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line, #2a3a46);
  background: var(--panel, #0e1c26);
  color: inherit;
}

.breath-system-root .bs-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.breath-system-root .bs-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.breath-system-root .bs-error {
  color: #ff7a7a;
  margin: 8px 0;
}

.breath-system-root .bs-note {
  font-size: 13px;
  opacity: 0.85;
}

.breath-system-root .bs-warning {
  color: #ffbf47;
}

.breath-system-root .bs-ok {
  color: #6fdc8c;
}

.breath-system-root .bs-code-box {
  border: 1px dashed var(--accent, #f15b2a);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.breath-system-root .bs-code {
  font-size: 22px;
  letter-spacing: 1px;
  user-select: all;
  word-break: break-all;
}

.breath-system-root .bs-plan {
  width: 100%;
  margin: 8px 0;
}

.breath-system-root .bs-stages li,
.breath-system-root .bs-summary li,
.breath-system-root .bs-help-section li {
  margin: 6px 0;
  line-height: 1.6;
}

.breath-system-root .bs-staff-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.breath-system-root .bs-staff-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line, #2a3a46);
  border-radius: 6px;
  padding: 8px 12px;
}

.breath-system-root .bs-row-actions {
  display: inline-flex;
  gap: 8px;
}

.breath-system-root .bs-help-section {
  margin-bottom: 16px;
}

.breath-system-root .bs-help-section h3 {
  margin: 0 0 6px;
}

.breath-system-root .bs-ledger-host {
  min-height: 200px;
}

/* Primary onboarding fields stay short; optional settings remain available. */
.breath-system-root .bs-more { grid-column: 1 / -1; }
.breath-system-root .bs-more summary { cursor: pointer; padding: 8px 0; }
.breath-system-root .bs-more > .bs-form { padding-top: 12px; }
.breath-system-root .bs-staff-row > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.breath-system-root .bs-row-actions { flex-shrink: 0; }
.breath-system-root .bs-row-actions button { white-space: nowrap; min-width: 52px; }
.breath-system-root .bs-ledger-host .breath-admin-root > .secondary-navigation { display: none; }
