.rb-shell {
  --rb-ink: #172033;
  --rb-muted: #667085;
  --rb-line: #e4e8ef;
  --rb-blue: #1a73e8;
  --rb-blue-soft: #edf5ff;
  --rb-purple: #7655b5;
  --rb-purple-soft: #f3efff;
  color: var(--rb-ink);
}

.rb-image-format-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
  padding: 22px 24px;
  border: 1px solid #d9e4f2;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, #f6f9ff 100%);
}

.rb-image-format-copy h2 {
  margin: 0 0 7px;
  font-size: 20px;
  line-height: 1.35;
}

.rb-image-format-copy > p {
  max-width: 720px;
  margin: 0;
  color: var(--rb-muted);
  font-size: 13px;
  line-height: 1.7;
}

.rb-image-format-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.rb-image-format-rules span {
  padding: 7px 9px;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  color: #5f6b7a;
  font-size: 11px;
  line-height: 1.45;
}

.rb-image-format-rules strong {
  margin-right: 6px;
  color: #27364a;
}

.rb-image-format-preview {
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(43, 66, 98, .08);
}

.rb-image-preview-title {
  padding: 11px 13px;
  background: #e8f1fd;
  color: #172033;
  font-size: 13px;
  font-weight: 700;
}

.rb-image-preview-meta,
.rb-image-preview-foot {
  padding: 7px 13px;
  background: #f7f9fc;
  color: #667085;
  font-size: 10px;
}

.rb-image-preview-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.4fr) repeat(2, minmax(90px, 1fr));
}

.rb-image-preview-row span {
  min-width: 0;
  padding: 8px 10px;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  color: #27364a;
  font-size: 10px;
  text-align: center;
}

.rb-image-preview-row span:first-child {
  text-align: left;
}

.rb-image-preview-row span:last-child {
  border-right: 0;
}

.rb-image-preview-row.header span {
  background: #eef3f8;
  font-weight: 700;
}

.rb-image-preview-row.total span {
  border-color: #b7dfc4;
  background: #eaf7ee;
  color: #247744;
  font-weight: 700;
}

@media (max-width: 980px) {
  .rb-image-format-card {
    grid-template-columns: 1fr;
  }
}

.rb-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid #dce6f5;
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 10%, rgba(118, 85, 181, .12), transparent 31%),
    linear-gradient(135deg, #fff 0%, #f6f9ff 100%);
}

.rb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--rb-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rb-hero h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.35;
}

.rb-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--rb-muted);
  font-size: 13px;
  line-height: 1.7;
}

.rb-stage-badge {
  align-self: flex-start;
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #cfe1fa;
  border-radius: 999px;
  background: #fff;
  color: var(--rb-blue);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.rb-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.rb-step {
  position: relative;
  min-height: 65px;
  padding: 11px 12px;
  border: 1px solid var(--rb-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
}

.rb-step strong,
.rb-step span {
  display: block;
}

.rb-step strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.rb-step span {
  color: #8a93a2;
  font-size: 11px;
  line-height: 1.45;
}

.rb-step.active {
  border-color: #a7c9f5;
  background: var(--rb-blue-soft);
  box-shadow: inset 3px 0 0 var(--rb-blue);
}

.rb-step.locked {
  background: #f8f9fb;
  color: #9299a6;
}

.rb-context {
  display: grid;
  grid-template-columns: minmax(250px, 1.1fr) minmax(0, 2fr);
  gap: 16px;
  margin-bottom: 16px;
}

.rb-context-card,
.rb-flow-card,
.rb-mapping-card,
.rb-preview-card {
  padding: 18px;
  border: 1px solid var(--rb-line);
  border-radius: 12px;
  background: #fff;
}

.rb-context-card label,
.rb-field label {
  display: block;
  margin-bottom: 6px;
  color: #697386;
  font-size: 11px;
  font-weight: 700;
}

.rb-context-card select {
  font-size: 14px;
  font-weight: 600;
}

.rb-context-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.rb-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #596273;
  font-size: 11px;
  font-weight: 600;
}

.rb-chip.blue {
  background: var(--rb-blue-soft);
  color: #1765c1;
}

.rb-chip.purple {
  background: var(--rb-purple-soft);
  color: var(--rb-purple);
}

.rb-chip.warn {
  background: #fff6dd;
  color: #996800;
}

.rb-chip.good {
  background: #eaf7ee;
  color: #247744;
}

.rb-flow-card {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
}

.rb-flow-node {
  flex: 1 0 150px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid #e2e7ee;
  border-radius: 10px;
  background: #fafbfc;
}

.rb-flow-node em,
.rb-flow-node strong,
.rb-flow-node small {
  display: block;
  font-style: normal;
}

.rb-flow-node em {
  margin-bottom: 4px;
  color: #98a1ae;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}

.rb-flow-node strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.rb-flow-node small {
  color: #7c8594;
  font-size: 10px;
  line-height: 1.45;
}

.rb-flow-node.active {
  border-color: #b8d3f7;
  background: var(--rb-blue-soft);
}

.rb-flow-arrow {
  flex: 0 0 auto;
  color: #9da7b4;
  font-size: 18px;
}

.rb-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.rb-section-head h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.rb-section-head p {
  margin: 0;
  color: var(--rb-muted);
  font-size: 12px;
  line-height: 1.55;
}

.rb-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rb-toolbar .btn[disabled] {
  cursor: not-allowed;
  opacity: .48;
}

.rb-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 13px;
  margin-bottom: 14px;
  border: 1px dashed #d8dee8;
  border-radius: 10px;
  background: #fafbfc;
}

.rb-template-empty,
.rb-template-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px dashed #cbd7e7;
  border-radius: 11px;
  background: #f8fbff;
}

.rb-template-empty strong,
.rb-template-summary strong,
.rb-template-summary small {
  display: block;
}

.rb-template-empty p {
  margin: 5px 0 0;
  color: var(--rb-muted);
  font-size: 12px;
  line-height: 1.55;
}

.rb-template-summary > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 11px;
  align-items: center;
}

.rb-template-summary strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rb-template-summary small {
  grid-column: 2;
  margin-top: 4px;
  color: var(--rb-muted);
  font-size: 10px;
}

.rb-template-warning {
  grid-column: 2;
  max-width: 760px;
  padding: 5px 7px;
  margin-top: 7px;
  border-radius: 6px;
  background: #fff3cd;
  color: #815b00;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.rb-template-icon {
  grid-row: 1 / span 3;
  padding: 10px 8px;
  border-radius: 8px;
  background: #e8f6ed;
  color: #238247;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.rb-template-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.rb-file-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.rb-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rb-template-legacy,
.rb-template-busy,
.rb-grid-note,
.rb-detected-empty {
  margin-top: 7px;
  color: #7b8493;
  font-size: 11px;
  line-height: 1.55;
}

.rb-template-legacy {
  color: #9a6a00;
}

.rb-template-busy {
  padding: 10px 12px;
  margin: 0 0 12px;
  border-radius: 8px;
  background: #edf5ff;
  color: #1765c1;
  font-weight: 600;
}

.rb-online-copy-panel {
  padding: 16px;
  margin: -4px 0 18px;
  border: 1px solid #b8d3f7;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7fbff, #fff);
}

.rb-online-copy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.rb-online-copy-head strong,
.rb-online-copy-head p {
  display: block;
}

.rb-online-copy-head strong {
  margin-bottom: 5px;
  font-size: 14px;
}

.rb-online-copy-head p {
  max-width: 820px;
  margin: 0;
  color: var(--rb-muted);
  font-size: 11px;
  line-height: 1.6;
}

.rb-copy-scope-tip {
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #f0d98d;
  border-radius: 8px;
  background: #fff9e7;
  color: #765500;
  font-size: 10px;
  line-height: 1.5;
}

.rb-paste-zone {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 20px;
  border: 2px dashed #8ab6ee;
  border-radius: 11px;
  outline: 0;
  background: #fff;
  color: #1765c1;
  cursor: text;
  text-align: center;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.rb-paste-zone:focus {
  border-color: var(--rb-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .13);
}

.rb-paste-zone strong,
.rb-paste-zone span {
  display: block;
}

.rb-paste-zone strong {
  font-size: 14px;
}

.rb-paste-zone span {
  margin-top: 5px;
  color: #728095;
  font-size: 10px;
}

.rb-paste-zone.is-accepted {
  border-style: solid;
  background: #edf5ff;
}

.rb-paste-zone.is-error {
  border-color: #dc7770;
  background: #fff6f5;
  color: #a33d36;
}

.rb-online-boundary,
.rb-rule-stage-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  color: #6f7886;
  font-size: 10px;
}

.rb-online-boundary span,
.rb-rule-stage-head span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #1765c1;
  font-weight: 800;
}

.rb-online-boundary em {
  margin-left: auto;
  color: #9098a5;
  font-style: normal;
}

.rb-rule-stage-head {
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid #e5e9ef;
}

.rb-workspace-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.rb-formula-toolbar {
  display: flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #dfe4eb;
  border-bottom: 0;
  background: #fafbfc;
  color: #747e8d;
  font-size: 9px;
}

.rb-name-box {
  min-width: 92px;
  padding: 8px 10px;
  border-right: 1px solid #dfe4eb;
  color: #354052;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.rb-formula-toolbar > strong {
  padding: 0 11px;
  color: #596273;
  font-family: Georgia, serif;
  font-style: italic;
}

.rb-formula-toolbar > span:not(.rb-name-box) {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rb-formula-editor {
  gap: 6px;
  padding-right: 6px;
}

.rb-formula-editor > input {
  flex: 1 1 360px;
  min-width: 180px;
  height: 28px;
  border: 1px solid #d7dee8;
  border-radius: 5px;
  background: #fff;
  color: #27364a;
  font: 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rb-formula-editor > select {
  width: auto;
  min-width: 126px;
  height: 28px;
  font-size: 9px;
}

.rb-sheet-tabs {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  overflow-x: auto;
}

.rb-sheet-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #dfe4eb;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #f5f7fa;
  color: #596273;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.rb-sheet-tab small {
  color: #9a6a00;
  font-size: 9px;
}

.rb-sheet-tab.active {
  padding-top: 10px;
  background: #fff;
  color: var(--rb-blue);
  box-shadow: inset 0 2px 0 var(--rb-blue);
}

.rb-workspace-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 7px;
  color: #77808f;
  font-size: 9px;
}

.rb-workspace-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rb-workspace-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #eef1f5;
}

.rb-workspace-legend i.mapped {
  background: #dcedff;
  box-shadow: inset 0 0 0 1px #78aee9;
}

.rb-workspace-legend i.formula {
  background: #f3edff;
  box-shadow: inset 0 0 0 1px #aa8bd7;
}

.rb-workspace-legend i.detected {
  background: #e9f7ed;
  box-shadow: inset 0 0 0 1px #83bd94;
}

.rb-workspace-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rb-template-action-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 178px;
  min-height: 26px;
  overflow: hidden;
  color: #667085;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rb-template-action-feedback.is-error,
.rb-action-feedback.is-error {
  color: #b3261e;
}

.rb-template-action-feedback.is-success,
.rb-action-feedback.is-success {
  color: #137333;
}

.rb-guarded-action,
.rb-guarded-action-placeholder {
  width: 132px;
  min-width: 132px;
}

.rb-guarded-action {
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1), background-color 140ms ease,
    color 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.rb-guarded-action.is-success {
  border-color: #8cc89a;
  background: #e6f4ea;
  color: #137333;
}

.rb-guarded-action.is-loading,
.rb-guarded-action.is-success {
  opacity: 1;
}

.rb-detected-fields {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  overflow-x: auto;
  border: 1px solid #e5e9ef;
  border-bottom: 0;
  background: #fafbfc;
  color: #7b8493;
  font-size: 10px;
}

.rb-detected-fields > span {
  flex: 0 0 auto;
}

.rb-field-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid #d8dfe8;
  border-radius: 999px;
  background: #fff;
  color: #4f5c6f;
  cursor: pointer;
  font-size: 10px;
}

.rb-field-chip:hover {
  border-color: #8ab6ee;
  color: #1765c1;
}

.rb-field-chip small {
  color: #99a2af;
  font-size: 8px;
}

.rb-field-chip.is-mapped {
  border-color: #8bb8ec;
  background: #edf5ff;
  color: #1765c1;
}

.rb-pick-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid #a7c9f5;
  border-bottom: 0;
  background: #edf5ff;
  color: #1765c1;
  font-size: 11px;
  font-weight: 700;
}

.rb-pick-notice button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.rb-workbook-shell {
  border: 1px solid #dfe4eb;
  border-radius: 0 8px 8px 8px;
  background: #fff;
}

.rb-grid-wrap {
  max-height: 590px;
  overflow: auto;
  overscroll-behavior: contain;
}

.rb-excel-grid {
  display: grid;
  width: max-content;
  min-width: 100%;
  background: #fff;
}

.rb-corner,
.rb-col-head,
.rb-row-head {
  position: sticky;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #d6dbe3;
  border-bottom: 1px solid #d6dbe3;
  background: #f3f5f7;
  color: #6f7886;
  font-size: 9px;
  font-weight: 700;
}

.rb-corner {
  top: 0;
  left: 0;
  z-index: 5;
  grid-column: 1;
  grid-row: 1;
}

.rb-col-head {
  top: 0;
  padding: 0;
  border-top: 0;
  border-left: 0;
  border-radius: 0;
  cursor: default;
  font-family: inherit;
}

button.rb-col-head {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.rb-col-head.is-selected {
  z-index: 7;
  background: #dcecff;
  color: #155fae;
  box-shadow: inset 0 0 0 2px #1a73e8;
}

.rb-row-head {
  left: 0;
}

.rb-excel-cell {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 5px 7px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid #e0e3e8;
  border-bottom: 1px solid #e0e3e8;
  border-radius: 0;
  background: #fff;
  color: #273244;
  cursor: cell;
  font: inherit;
  font-size: 10px;
  line-height: 1.3;
  text-align: left;
  text-overflow: ellipsis;
  white-space: pre-wrap;
}

.rb-excel-cell:hover,
.rb-excel-cell.is-focused {
  z-index: 2;
  box-shadow: inset 0 0 0 2px var(--rb-blue);
}

.rb-excel-cell.is-mapped {
  background-color: #e9f4ff !important;
  box-shadow: inset 0 0 0 1px #7faee6;
}

.rb-excel-cell.has-cell-rule:not(.is-mapped) {
  box-shadow: inset 0 0 0 1px #9b83cb;
}

.rb-excel-cell.is-selected {
  z-index: 3;
  box-shadow: inset 0 0 0 2px #1a73e8 !important;
}

.rb-excel-cell.is-column-selected {
  background-image: linear-gradient(rgba(26, 115, 232, .06), rgba(26, 115, 232, .06));
  box-shadow: inset 1px 0 0 rgba(26, 115, 232, .55), inset -1px 0 0 rgba(26, 115, 232, .55) !important;
}

.rb-excel-cell.has-formula:not(.is-mapped) {
  background-color: #f6f1ff !important;
}

.rb-excel-cell.is-detected:not(.is-mapped) {
  box-shadow: inset 0 -3px 0 #83bd94;
}

.rb-excel-cell > span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: inherit;
  word-break: break-word;
}

.rb-grid-note {
  padding: 8px 10px;
  margin: 0;
  border-top: 1px solid #e6e9ef;
  background: #fafbfc;
}

.rb-field input,
.rb-field select,
.rb-field textarea {
  background: #fff;
}

.rb-field input:disabled,
.rb-field select:disabled,
.rb-field textarea:disabled {
  cursor: not-allowed;
  border-color: #e5e8ed;
  background: #f3f5f8;
  color: #a0a7b2;
}

.rb-link-preview {
  padding: 9px 10px;
  border: 1px solid #dce8f7;
  border-radius: 8px;
  background: #f7fbff;
}

.rb-link-preview > strong {
  display: block;
  margin-bottom: 6px;
  color: #42536a;
  font-size: 10px;
}

.rb-link-preview > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rb-link-preview span {
  max-width: 100%;
  padding: 3px 6px;
  overflow: hidden;
  border-radius: 5px;
  background: #e8f1fd;
  color: #34516f;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rb-link-preview span.is-empty {
  background: #f0f1f3;
  color: #949aa4;
}

.rb-metric-list {
  display: grid;
  gap: 10px;
}

.rb-metric-summary {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(130px, .7fr) minmax(210px, 1.3fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid #e2e7ee;
  border-radius: 10px;
  background: #fff;
}

.rb-metric-summary.has-error {
  border-color: #efc6c3;
  box-shadow: inset 3px 0 0 #d9534f;
}

.rb-metric-summary > div > span,
.rb-metric-summary > div > strong,
.rb-metric-title small {
  display: block;
}

.rb-metric-summary > div > span {
  margin-bottom: 3px;
  color: #929aa7;
  font-size: 9px;
  font-weight: 600;
}

.rb-metric-summary > div > strong {
  overflow: hidden;
  color: #3b4657;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rb-metric-title > strong {
  font-size: 13px !important;
}

.rb-metric-title small {
  margin-top: 4px;
  color: #77808f;
  font-size: 9px;
}

.rb-metric-target strong {
  color: var(--rb-blue) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rb-metric-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.rb-editor-backdrop {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(21, 30, 45, .42);
  backdrop-filter: blur(2px);
}

.rb-editor-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid #dce2ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(25, 34, 50, .22);
}

.rb-field textarea {
  width: 100%;
  min-height: 82px;
  padding: 9px 10px;
  border: 1px solid #dfe4eb;
  border-radius: 8px;
  color: #273244;
  font: inherit;
  resize: vertical;
}

.rb-field small {
  display: block;
  margin-top: 5px;
  color: #8a93a2;
  font-size: 9px;
  line-height: 1.5;
}

.rb-range-input,
.rb-fx-input input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rb-fx-input {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: stretch;
}

.rb-fx-input strong {
  display: grid;
  place-items: center;
  border: 1px solid #dfe4eb;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #f7f8fa;
  color: #596273;
  font-family: Georgia, serif;
  font-style: italic;
}

.rb-fx-input input {
  border-radius: 0 8px 8px 0;
}

.rb-editor-head,
.rb-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
}

.rb-editor-head {
  border-bottom: 1px solid #e5e8ee;
}

.rb-editor-head span {
  color: var(--rb-blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rb-editor-head h3 {
  margin: 3px 0 0;
  font-size: 16px;
}

.rb-editor-head > button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f6;
  color: #687282;
  cursor: pointer;
  font-size: 20px;
}

.rb-editor-target {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  padding: 12px 18px;
  border-bottom: 1px solid #e7eaf0;
  background: #f7faff;
}

.rb-editor-target span,
.rb-editor-target small {
  color: #7f8896;
  font-size: 10px;
}

.rb-editor-target strong {
  color: var(--rb-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.rb-editor-target small {
  grid-column: 2;
}

.rb-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  padding: 18px;
}

.rb-editor-wide {
  grid-column: 1 / -1;
}

.rb-editor-warning {
  padding: 10px 12px;
  margin: 0 18px;
  border: 1px solid #efc6c3;
  border-radius: 8px;
  background: #fff0ef;
  color: #a33d36;
  font-size: 10px;
  line-height: 1.5;
}

.rb-fda-proof {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid #e0d6f2;
  border-radius: 8px;
  background: #faf7ff;
  color: #5d4b79;
  cursor: pointer;
  font-size: 10px;
  line-height: 1.55;
}

.rb-fda-proof input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
}

.rb-fda-proof strong {
  display: block;
  margin-bottom: 2px;
  color: #43325f;
}

.rb-editor-footer {
  border-top: 1px solid #e5e8ee;
}

.rb-editor-footer > div {
  display: flex;
  gap: 8px;
}

.rb-editor-footer > .rb-editor-destructive-slot {
  display: grid;
  grid-template-columns: 132px minmax(150px, 260px);
  align-items: center;
  gap: 10px;
  min-height: 30px;
}

.rb-action-feedback {
  overflow: hidden;
  color: #667085;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rb-metric {
  padding: 13px;
  border: 1px solid #e2e7ee;
  border-radius: 11px;
  background: #fff;
}

.rb-metric.has-error {
  border-color: #efc6c3;
  box-shadow: inset 3px 0 0 #d9534f;
}

.rb-metric-flow {
  display: grid;
  grid-template-columns: minmax(145px, .9fr) 24px minmax(220px, 1.45fr) 24px minmax(135px, .8fr) 24px minmax(170px, 1fr);
  align-items: end;
  gap: 8px;
}

.rb-metric-flow .rb-flow-arrow {
  align-self: center;
  text-align: center;
}

.rb-field input,
.rb-field select {
  min-height: 36px;
}

.rb-source-extra {
  margin-top: 7px;
}

.rb-source-caption {
  display: block;
  margin-top: 5px;
  color: #8a93a2;
  font-size: 10px;
  line-height: 1.45;
}

.rb-metric-meta {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.5fr) auto;
  gap: 10px;
  align-items: end;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px dashed #e7eaf0;
}

.rb-status {
  font-weight: 600;
}

.rb-delete {
  align-self: center;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #a34b46;
  cursor: pointer;
  font-size: 12px;
}

.rb-delete:hover {
  background: #fff0ef;
}

.rb-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 14px 0;
}

.rb-summary-item {
  padding: 11px 12px;
  border: 1px solid #e6e9ef;
  border-radius: 9px;
  background: #fafbfc;
}

.rb-summary-item strong,
.rb-summary-item span {
  display: block;
}

.rb-summary-item strong {
  margin-bottom: 2px;
  font-size: 18px;
}

.rb-summary-item span {
  color: var(--rb-muted);
  font-size: 10px;
}

.rb-validation {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.rb-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f6f7f9;
  color: #657080;
  font-size: 11px;
  line-height: 1.5;
}

.rb-check.good {
  background: #edf8f0;
  color: #2a7341;
}

.rb-check.warn {
  background: #fff8e6;
  color: #896400;
}

.rb-check.error {
  background: #fff0ef;
  color: #a33d36;
}

.rb-preview-wrap {
  overflow-x: auto;
  border: 1px solid #dfe4eb;
  border-radius: 9px;
}

.rb-preview-table {
  min-width: 760px;
  table-layout: auto;
}

.rb-preview-table th {
  background: #eaf1f8;
  color: #354052;
}

.rb-preview-table td {
  min-width: 130px;
}

.rb-lineage {
  display: block;
  margin-top: 4px;
  color: #8a93a2;
  font-size: 9px;
  font-weight: 400;
}

.rb-preview-empty {
  color: #a0a7b2;
  font-style: italic;
}

.rb-footer-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 13px;
  margin-top: 14px;
  border: 1px solid #e3def1;
  border-radius: 9px;
  background: #f8f5ff;
  color: #675386;
  font-size: 11px;
  line-height: 1.55;
}

.rb-loading,
.rb-empty-state {
  padding: 56px 24px;
  border: 1px solid var(--rb-line);
  border-radius: 12px;
  background: #fff;
  color: var(--rb-muted);
  text-align: center;
}

.rb-empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--rb-ink);
  font-size: 15px;
}

.rb-btn-preview {
  border: 1px solid #d69e00;
  background: #fff2b8;
  color: #704b00;
  box-shadow: 0 1px 0 rgba(112, 75, 0, .08);
}

.rb-btn-preview:hover:not(:disabled) {
  border-color: #b77f00;
  background: #ffe58a;
}

.rb-toolbar button {
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.rb-toolbar button:active:not(:disabled) {
  transform: scale(.98);
}

.rb-shared-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f5ec;
  color: #277a42;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

.rb-shared-status.dirty {
  background: #fff4ce;
  color: #815c00;
}

.rb-shared-status.conflict,
.rb-shared-status.error {
  background: #fee9e7;
  color: #a92f26;
}

.rb-shared-conflict {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #efb2ac;
  border-radius: 10px;
  background: #fff5f4;
  color: #87362f;
}

.rb-shared-conflict > div:first-child {
  display: grid;
  gap: 3px;
}

.rb-shared-conflict > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.rb-workspace-mode-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 0 0;
  border-bottom: 1px solid var(--rb-line);
}

.rb-workspace-mode-tabs button {
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: var(--rb-muted);
  font-weight: 700;
  cursor: pointer;
}

.rb-workspace-mode-tabs button.active {
  border-color: #b9d2fb;
  background: #edf5ff;
  color: #0b63ce;
}

.rb-production-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 260px;
  padding: 44px 20px;
  border: 1px dashed #c9d4e5;
  border-radius: 0 0 12px 12px;
  background: #fbfcfe;
  color: var(--rb-muted);
  text-align: center;
}

.rb-production-empty-icon {
  color: #8aa6ca;
  font-size: 32px;
}

.rb-production-empty strong {
  color: var(--rb-ink);
  font-size: 15px;
}

.rb-production-empty p {
  max-width: 620px;
  margin: 0 0 8px;
  line-height: 1.6;
}

.rb-production-error {
  max-width: 720px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fee9e7;
  color: #a92f26;
}

.rb-production-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--rb-line);
  border-top: 0;
  background: #f8fafc;
}

.rb-production-meta > div:first-child {
  display: grid;
  gap: 3px;
}

.rb-production-meta > div:last-child {
  display: flex;
  gap: 8px;
}

.rb-production-meta span {
  color: var(--rb-muted);
  font-size: 11px;
}

.rb-production-meta .rb-stale-warning {
  padding: 5px 8px;
  border-radius: 7px;
  background: #fff4ce;
  color: #815c00;
  font-weight: 600;
}

.rb-workbook-shell.is-readonly .rb-excel-cell {
  cursor: default;
}

.rb-workbook-shell.is-readonly .rb-excel-cell:hover {
  outline: none;
  box-shadow: none;
}

@media (max-width: 1120px) {
  .rb-context {
    grid-template-columns: 1fr;
  }

  .rb-metric-flow {
    grid-template-columns: 1fr 18px 1.3fr;
  }

  .rb-metric-flow .rb-flow-arrow:nth-of-type(2),
  .rb-metric-flow .rb-flow-arrow:nth-of-type(3) {
    display: none;
  }

  .rb-metric-flow .rb-field:nth-child(5),
  .rb-metric-flow .rb-field:nth-child(7) {
    margin-top: 10px;
  }

  .rb-metric-summary {
    grid-template-columns: minmax(140px, 1fr) minmax(120px, .8fr) minmax(190px, 1.2fr) auto;
  }
}

@media (max-width: 760px) {
  .rb-hero {
    display: block;
  }

  .rb-stage-badge {
    display: inline-block;
    margin-top: 14px;
  }

  .rb-steps,
  .rb-template-grid,
  .rb-summary {
    grid-template-columns: 1fr 1fr;
  }

  .rb-metric-flow,
  .rb-metric-meta {
    grid-template-columns: 1fr;
  }

  .rb-metric-flow .rb-flow-arrow {
    display: none;
  }

  .rb-template-empty,
  .rb-template-summary,
  .rb-workspace-head {
    align-items: stretch;
    flex-direction: column;
  }

  .rb-template-actions,
  .rb-workspace-legend {
    justify-content: flex-start;
  }

  .rb-workspace-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .rb-template-action-feedback {
    justify-content: flex-start;
    width: 100%;
    text-align: left;
  }

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

  .rb-editor-footer > .rb-editor-destructive-slot {
    grid-template-columns: 132px minmax(0, 1fr);
    width: 100%;
  }

  .rb-metric-summary,
  .rb-editor-grid {
    grid-template-columns: 1fr;
  }

  .rb-metric-actions {
    justify-content: flex-start;
  }

  .rb-editor-wide {
    grid-column: auto;
  }

  .rb-editor-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .rb-editor-modal {
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
  }
}

/* ── Tab6 v7 · Tab2 指标拖拽映射 ───────────────────────────── */
.rb-simple-hero {
  align-items: flex-start;
}

.rb-simple-hero > div {
  max-width: 920px;
}

.rb-boundary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.rb-boundary-chips span {
  padding: 6px 9px;
  border: 1px solid #dfe8f5;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: #52647c;
  font-size: 10px;
  font-weight: 700;
}

.rb-simple-context {
  grid-template-columns: minmax(0, 1fr);
}

.rb-metric-palette {
  position: relative;
  z-index: 4;
  padding: 13px 14px;
  border: 1px solid #dde5f0;
  border-radius: 11px;
  background: #fbfcfe;
}

.rb-palette-heading,
.rb-palette-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.rb-palette-heading {
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8edf4;
}

.rb-palette-heading strong,
.rb-palette-heading span {
  display: block;
}

.rb-palette-heading strong {
  color: #26364c;
  font-size: 13px;
}

.rb-palette-heading span {
  margin-top: 2px;
  color: #7c8797;
  font-size: 10px;
}

.rb-palette-count {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf4ff;
  color: #2564af !important;
  font-weight: 700;
}

.rb-palette-row {
  padding-top: 10px;
}

.rb-palette-row > div {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 7px;
}

.rb-palette-label {
  flex: 0 0 92px;
  padding-top: 7px;
  color: #717d8e;
  font-size: 10px;
  font-weight: 800;
}

.rb-drag-metric,
.rb-drag-formula {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  touch-action: none;
  user-select: none;
  cursor: grab;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.rb-drag-metric:hover,
.rb-drag-metric:focus-visible,
.rb-drag-formula:hover,
.rb-drag-formula:focus-visible {
  border-color: #7aa9e8;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 100, 175, .12);
}

.rb-drag-metric.is-picked,
.rb-drag-formula.is-picked {
  border-color: #1a73e8;
  background: #eaf3ff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .14);
}

.rb-drag-metric small {
  color: #1a73e8;
  font-size: 8px;
  font-weight: 800;
}

.rb-formula-palette-row {
  border-top: 1px dashed #dfe5ee;
  margin-top: 10px;
}

.rb-adjust-palette-row {
  border-top: 1px dashed #e3d9f2;
  margin-top: 10px;
}

.rb-adjust-palette-row .rb-palette-label {
  color: var(--rb-purple);
}

.rb-adjust-palette-row .rb-field-chip {
  border-color: #d8ccec;
  background: #fbf8ff;
  color: #674b96;
}

.rb-adjust-palette-row .rb-field-chip:hover,
.rb-adjust-palette-row .rb-field-chip:focus-visible {
  border-color: #9b7bc8;
  box-shadow: 0 0 0 3px rgba(118, 85, 181, .12);
}

.rb-adjust-palette-row .rb-field-chip.is-mapped,
.rb-adjust-palette-row .rb-field-chip.is-picked {
  border-color: #9b7bc8;
  background: var(--rb-purple-soft);
  color: var(--rb-purple);
  box-shadow: 0 0 0 3px rgba(118, 85, 181, .14);
}

.rb-adjust-palette-row .rb-field-chip small {
  color: var(--rb-purple);
}

.rb-formula-chip {
  border-color: #d8ccec;
  background: #fbf8ff;
  color: #674b96;
}

.rb-formula-chip > strong {
  display: inline-grid;
  min-width: 24px;
  place-items: center;
  color: #7655b5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.rb-palette-empty {
  padding: 7px 0;
  color: #a06b21;
  font-size: 10px;
}

.rb-drag-ghost {
  position: fixed;
  z-index: 20050;
  top: 0;
  left: 0;
  padding: 7px 10px;
  pointer-events: none;
  border: 1px solid #6b9ddd;
  border-radius: 8px;
  background: #fff;
  color: #1b5ca7;
  box-shadow: 0 10px 26px rgba(24, 55, 93, .22);
  font-size: 11px;
  font-weight: 800;
  will-change: transform;
}

.rb-excel-cell.is-drop-target {
  z-index: 8;
  background-color: #e8f3ff !important;
  box-shadow: inset 0 0 0 3px #1a73e8, 0 0 0 2px rgba(26, 115, 232, .16) !important;
}

.rb-col-head.is-drop-target {
  z-index: 8;
  background: #dcecff;
  color: #155fae;
  box-shadow: inset 0 0 0 2px #1a73e8;
}

.rb-col-head.is-column-drop-before {
  box-shadow: inset 3px 0 0 #1a73e8 !important;
}

.rb-col-head.is-column-drop-after {
  box-shadow: inset -3px 0 0 #1a73e8 !important;
}

.rb-excel-cell.is-mapped-anchor {
  background-color: #dcecff !important;
  box-shadow: inset 0 -3px 0 #1a73e8 !important;
}

.rb-excel-cell.is-range-selecting {
  background-color: #edf5ff !important;
}

.rb-range-picker-bar {
  position: sticky;
  z-index: 30;
  bottom: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 11px 13px;
  margin: 10px;
  border: 1px solid #89afe2;
  border-radius: 11px;
  background: rgba(250, 253, 255, .96);
  box-shadow: 0 12px 32px rgba(26, 72, 128, .18);
  backdrop-filter: blur(10px);
}

.rb-range-picker-bar strong,
.rb-range-picker-bar span {
  display: block;
}

.rb-range-picker-bar strong {
  color: #224d82;
  font-size: 11px;
}

.rb-range-picker-bar span {
  margin-top: 2px;
  color: #718096;
  font-size: 9px;
}

.rb-range-picker-bar code,
.rb-setting-row code {
  padding: 6px 8px;
  border-radius: 6px;
  background: #edf4fd;
  color: #175da9;
  font: 700 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rb-range-picker-bar > div:last-child {
  display: flex;
  gap: 6px;
}

.rb-simple-editor {
  width: min(560px, 100%);
}

.rb-simple-editor-body {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.rb-setting-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 10px 11px;
  border-radius: 8px;
  background: #f7f9fc;
}

.rb-setting-row span,
.rb-setting-block label {
  color: #6f7c8e;
  font-size: 10px;
  font-weight: 700;
}

.rb-setting-row strong {
  color: #34445a;
  font-size: 11px;
}

.rb-setting-block label,
.rb-setting-block small {
  display: block;
}

.rb-setting-block select {
  width: 100%;
  margin-top: 6px;
}

.rb-setting-block small {
  margin-top: 6px;
  color: #8590a0;
  font-size: 9px;
}

.rb-range-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-top: 6px;
}

.rb-range-control input {
  width: 100%;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #f5f7fa;
  color: #34506f;
}

.rb-rule-preset {
  padding: 11px 12px;
  border: 1px solid #dce8f7;
  border-radius: 9px;
  background: #f5f9ff;
}

.rb-rule-preset strong,
.rb-rule-preset span {
  display: block;
}

.rb-rule-preset strong {
  color: #315c8d;
  font-size: 10px;
}

.rb-rule-preset span {
  margin-top: 4px;
  color: #63758c;
  font-size: 10px;
  line-height: 1.55;
}

.rb-legacy-rules {
  margin-top: 11px;
  border-top: 1px solid #e8edf4;
  color: #7d6d5a;
  font-size: 9px;
}

.rb-legacy-rules summary {
  padding-top: 10px;
  cursor: pointer;
  font-weight: 800;
}

.rb-legacy-rules div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 7px;
}

.rb-legacy-rules div span {
  padding: 4px 6px;
  border-radius: 5px;
  background: #f5f0ea;
}

.rb-more-actions {
  position: relative;
}

.rb-more-actions summary {
  list-style: none;
  cursor: pointer;
}

.rb-more-actions summary::-webkit-details-marker {
  display: none;
}

.rb-more-actions > div {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  gap: 5px;
  min-width: 168px;
  padding: 7px;
  border: 1px solid #dce3ec;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 45, 68, .16);
}

.rb-compact-status {
  display: grid;
  grid-template-columns: 80px 80px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px;
  margin-top: 13px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #fff;
}

.rb-compact-status > div:not(.rb-validation) {
  text-align: center;
}

.rb-compact-status > div > strong,
.rb-compact-status > div > span {
  display: block;
}

.rb-compact-status > div > strong {
  color: #245f9f;
  font-size: 18px;
}

.rb-compact-status > div > span,
.rb-compact-status > p {
  color: #7e8997;
  font-size: 9px;
}

.rb-compact-status > p {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 760px) {
  .rb-formula-editor {
    flex-wrap: wrap;
    padding: 6px;
  }

  .rb-formula-editor .rb-name-box {
    min-width: 64px;
    padding: 6px 8px;
    border-right: 0;
  }

  .rb-formula-editor > strong {
    padding: 0 4px;
  }

  .rb-formula-editor > input {
    flex: 1 1 calc(100% - 112px);
    min-width: 140px;
  }

  .rb-formula-editor > select {
    flex: 1 1 150px;
  }

  .rb-palette-heading,
  .rb-palette-row,
  .rb-setting-row {
    display: block;
  }

  .rb-palette-label {
    display: block;
    padding: 0 0 7px;
  }

  .rb-range-picker-bar {
    grid-template-columns: 1fr;
  }

  .rb-range-picker-bar > div:last-child {
    justify-content: flex-end;
  }

  .rb-compact-status {
    grid-template-columns: 1fr 1fr;
  }

  .rb-compact-status .rb-validation {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rb-drag-metric,
  .rb-drag-formula,
  .rb-guarded-action {
    transition: none;
  }
}
