.step9-diagnostic, .step9-experiment, .step9-checklist {
  min-width: 0;
  margin-block: 26px;
  padding: 18px 15px;
  border: 1px solid #292a2d;
  border-radius: 17px;
  background: linear-gradient(135deg, #141414, #080909 78%);
}
.roblox-guide-case .step9-widget-title { margin: 0 0 12px; color: #f4f5f6; font-size: 20px; line-height: 1.25; letter-spacing: -.025em; }
.roblox-guide-case :is(.step9-widget-note, .step9-metric-help, .step9-decision-note, .step9-storage-status) { margin: 10px 0 16px; color: #a5a8ad; font-size: 12px; line-height: 1.65; }
.step9-diagnostic-select, .step9-field :is(input:not([type=checkbox]), textarea, select) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 11px 10px;
  border: 1px solid #33353a;
  border-radius: 9px;
  background: #080909;
  color: #e9ebed;
  font: 400 16px / 1.4 Inter, sans-serif;
  font-variant-numeric: tabular-nums;
}
.step9-field :is(input,textarea)::placeholder { color: #696d74; opacity: 1; }
.step9-field textarea { resize: vertical; min-height: 76px; }
.step9-diagnostic select { margin-top: 8px; }
.roblox-guide-case .step9-diagnostic-title { margin: 21px 0 12px; color: #f3f3f3; font-size: 17px; line-height: 1.35; }
.roblox-guide-case .step9-diagnostic-result > p { margin: 10px 0; color: #bec2c9; font-size: 13px; line-height: 1.7; }
.roblox-guide-case .step9-diagnostic-result strong { color: #edf0f5; }
.roblox-guide-case .step9-diagnostic-avoid { padding-left: 11px; border-left: 2px solid #7b7064; }
.step9-diagnostic-sources { display: flex; flex-wrap: wrap; gap: 7px 14px; }
.step9-diagnostic-sources a { color: #b7c8dd; text-underline-offset: .2em; }
.step9-field { display: grid; gap: 7px; min-width: 0; margin-block: 14px; }
.step9-field-label { color: #b9bec7; font: 500 11px / 1.5 Inter, sans-serif; }
.step9-field-grid, .step9-sample-grid { display: grid; gap: 0 12px; min-width: 0; }
.step9-sample-grid { gap: 15px; margin-block: 20px; }
.step9-sample { min-width: 0; margin: 0; padding: 14px 11px 10px; border: 1px solid #282a2f; border-radius: 13px; background: linear-gradient(130deg, #101113, #070808); }
.step9-sample-title { padding-inline: 5px; color: #eff1f5; font: 700 13px / 1.4 Inter, sans-serif; }
.step9-count-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; min-width: 0; }
.step9-count-grid .step9-field { align-content: end; }
.roblox-guide-case .step9-rate { min-height: 3em; margin: 14px 0 0; padding-top: 11px; border-top: 1px solid #282a2e; color: #c6ced9; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.step9-field input[aria-invalid=true] { border-color: #9a766b; }
.step9-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-block: 20px; cursor: pointer; }
.step9-checkbox input, .step9-check-item input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #c4cedc; }
.step9-checkbox .step9-field-label { color: #d0d4db; font-size: 12px; }
.roblox-guide-case .step9-comparison { white-space: pre-line; margin: 15px 0 24px; padding: 14px 12px; border-radius: 10px; background: #08090a; color: #c9d1dd; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.step9-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.step9-widget-button { min-height: 44px; max-width: 100%; padding: 10px 13px; border: 1px solid #3b3d42; border-radius: 10px; background: linear-gradient(#232426, #101112); color: #f0f1f4; font: 650 12px / 1.45 Inter, sans-serif; cursor: pointer; touch-action: manipulation; }
.step9-widget-button:active { background: #080909; transform: translateY(1px); }
.step9-widget-button:disabled { opacity: .5; cursor: default; }
:is(.step9-diagnostic,.step9-experiment,.step9-checklist) :is(button,input,textarea,select,a):focus-visible { outline: 2px solid #c3d3e7; outline-offset: 3px; }
.step9-import-confirmation, .step9-reset-confirmation { margin-top: 15px; padding: 13px; border: 1px solid #4a4038; border-radius: 11px; background: #151310; }
.step9-import-confirmation > button, .step9-reset-confirmation > button { margin: 4px 5px 0 0; }
.roblox-guide-case .step9-workspace-status { margin: 13px 0 0; color: #d0d4dd; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.roblox-guide-case .step9-error { color: #e3b4a4; }
.step9-checklist-items { display: grid; }
.step9-check-item { display: flex; align-items: flex-start; gap: 11px; padding-block: 13px; color: #dadde3; font: 400 13px / 1.7 Inter, sans-serif; cursor: pointer; }
.step9-check-item + .step9-check-item { border-top: 1px solid #292a2e; }
.step9-check-item span { min-width: 0; overflow-wrap: anywhere; }
.roblox-guide-case .step9-check-count { margin: 16px 0 0; color: #a7aeb9; font-size: 12px; line-height: 1.6; }
.step9-export-files .lesson-download { margin-bottom: 0; }
.step9-manual-json { box-sizing: border-box; display: block; width: 100%; min-height: 220px; max-width: 100%; margin: 14px 0 10px; padding: 12px; border: 1px solid #3b3d42; border-radius: 10px; background: #080909; color: #d6dce6; font: 400 12px / 1.65 ui-monospace, Consolas, monospace; resize: vertical; }
@container (min-width: 460px) { .step9-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .step9-diagnostic, .step9-experiment, .step9-checklist { padding-inline: 11px; } .step9-sample { padding-inline: 9px; } .step9-count-grid { gap: 7px; } }

/* One worksheet on the reader's surface, rather than nested cards. */
.roblox-paid-growth .step9-experiment {
  margin: 34px calc(var(--roblox-reader-gutter, 20px) * -.5) 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.roblox-paid-growth .step9-experiment .step9-widget-title { margin-bottom: 12px; }
.roblox-paid-growth .step9-experiment .step9-widget-note { margin: 0 0 24px; color: #aaa; }
.step9-experiment .step9-field { gap: 9px; margin-block: 18px; }
.step9-experiment .step9-field-label { color: #b6b6b6; font-size: 12px; }
.step9-experiment .step9-field-grid { column-gap: 18px; }
.step9-experiment .step9-field :is(input:not([type=checkbox]), textarea, select) {
  min-height: 48px;
  padding: 12px;
  border-color: #303030;
  border-radius: 9px;
  background: #090909;
  color: #eee;
  color-scheme: dark;
}
.step9-experiment .step9-field :is(input, textarea)::placeholder { color: #777; }
.roblox-paid-growth .step9-experiment .step9-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23b6b6b6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px 14px;
  background-position: right 12px center;
}
.step9-experiment .step9-field textarea { min-height: 88px; }
.step9-experiment .step9-sample-grid { gap: 30px; margin-block: 30px; }
.step9-experiment .step9-sample {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.step9-experiment .step9-sample-title {
  width: 100%;
  padding: 0;
  color: #f2f2f2;
  font-size: 14px;
  line-height: 1.5;
}
.roblox-paid-growth .step9-experiment .step9-rate {
  min-height: 0;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  color: #bfbfbf;
  font-variant-numeric: tabular-nums;
}
.roblox-paid-growth .step9-experiment .step9-comparison {
  margin: 14px 0 24px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #bfbfbf;
}
.step9-experiment .step9-checkbox { gap: 12px; margin-block: 26px 18px; }
.step9-experiment .step9-checkbox input { accent-color: #eee; color-scheme: dark; }
.step9-experiment .step9-card-actions { gap: 10px; margin-top: 26px; }
.step9-experiment .step9-widget-button {
  padding: 11px 15px;
  border-color: #353535;
  border-radius: 10px;
  background: #111;
  color: #e8e8e8;
}
.step9-experiment .step9-card-actions > .step9-widget-button:first-child { border-color: #e9e9e9; background: #e9e9e9; color: #111; }
.step9-experiment .step9-widget-button:active { transform: none; background: #202020; }
.step9-experiment .step9-card-actions > .step9-widget-button:first-child:active { background: #d0d0d0; }
.step9-experiment :is(button, input, textarea, select, a):focus-visible { outline: 2px solid #ddd; outline-offset: 3px; }
.step9-experiment .step9-field :is(input:not([type=checkbox]), textarea, select):focus-visible { outline: none; border-color: #aaa; box-shadow: 0 0 0 2px rgb(255 255 255 / .045); }
.step9-experiment .step9-field input[aria-invalid=true] { border-color: #ab7f73; }
.step9-experiment :is(.step9-import-confirmation, .step9-reset-confirmation) { margin-top: 18px; padding: 0; border: 0; border-radius: 0; background: none; }
.roblox-paid-growth .step9-experiment :is(.step9-metric-help, .step9-decision-note, .step9-storage-status) { color: #999; }
@media (prefers-reduced-motion: no-preference) {
  .step9-experiment .step9-field :is(input, textarea, select), .step9-experiment .step9-widget-button { transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
}
