.rng-page { color: #172033; }
.rng-heading { margin-bottom: 30px; }
.rng-eyebrow { margin: 0 0 10px !important; color: #087f6d; font-size: 14px !important; font-weight: 800; }
.rng-heading h1 { margin: 0 0 16px; color: #111827; font-size: 43px; line-height: 1.2; letter-spacing: 0; }
.rng-heading > p:last-child { max-width: 790px; margin: 0; color: #526078; font-size: 18px; line-height: 1.75; }
.rng-tool, .rng-guide { overflow: hidden; margin-top: 24px; border: 1px solid #d6e0eb; border-radius: 8px; background: #fff; }
.rng-presets { display: grid; grid-template-columns: minmax(145px, 1fr) repeat(4, auto); align-items: center; gap: 8px; padding: 18px 22px; border-bottom: 1px solid #dce5ef; background: #f8fafc; }
.rng-presets h2 { margin: 0; color: #172033; font-size: 18px; }
.rng-presets p { margin: 3px 0 0; color: #7c899b; font-size: 11px; }
.rng-presets button { width: auto; min-width: 72px; min-height: 49px; margin: 0; padding: 7px 11px; border: 1px solid #d2dde9; border-radius: 7px; background: #fff; color: #46556b; box-shadow: none; font-size: 11px; font-weight: 800; cursor: pointer; }
.rng-presets button span { display: block; color: #087f6d; font-size: 12px; font-weight: 900; }
.rng-presets button:hover { border-color: #83cbbc; background: #eef9f6; }
.rng-workspace { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.rng-settings, .rng-output { min-width: 0; padding: 25px; }
.rng-settings { border-right: 1px solid #dce5ef; }
.rng-output { background: #fbfcfe; }
.rng-settings > header span, .rng-output > header span, .rng-history header span { display: block; margin-bottom: 3px; color: #087f6d; font-size: 10px; font-weight: 900; }
.rng-settings h2, .rng-output h2, .rng-history h2 { margin: 0; color: #172033; font-size: 20px; }
.rng-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 20px; }
.rng-field-grid label, .rng-excluded { margin: 0; color: #405067; font-size: 12px; font-weight: 800; }
.rng-field-grid input, .rng-field-grid select, .rng-excluded textarea { width: 100%; margin-top: 6px; border: 1px solid #ced9e5; border-radius: 7px; background-color: #fff; color: #172033; font-size: 14px; font-weight: 700; }
.rng-field-grid input, .rng-field-grid select { height: 47px; }
.rng-field-grid select { padding: 0 38px 0 12px; }
.rng-excluded { display: block; margin-top: 15px; }
.rng-excluded textarea { min-height: 72px; padding: 11px 12px; resize: vertical; line-height: 1.5; }
.rng-excluded > span { display: block; margin-top: 5px; color: #8a96a7; font-size: 10px; font-weight: 400; }
.rng-toggle { display: flex; align-items: flex-start; gap: 10px; margin: 15px 0 0; padding: 13px; border: 1px solid #dce5ef; border-radius: 7px; background: #f8fafc; cursor: pointer; }
.rng-toggle input { flex: 0 0 19px; width: 19px !important; height: 19px !important; margin: 1px 0 0 !important; opacity: 1 !important; appearance: auto !important; }
.rng-toggle strong, .rng-toggle small { display: block; }
.rng-toggle strong { color: #26354a; font-size: 13px; }
.rng-toggle small { margin-top: 3px; color: #7b889a; font-size: 10px; line-height: 1.5; }
.rng-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.rng-summary div { padding: 11px; border: 1px solid #cfe5e0; border-radius: 7px; background: #eff8f6; }
.rng-summary span, .rng-summary strong { display: block; }
.rng-summary span { color: #668079; font-size: 10px; }
.rng-summary strong { overflow: hidden; margin-top: 3px; color: #087f6d; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.rng-summary.is-error div { border-color: #f2c4c0; background: #fff3f2; }
.rng-primary-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 15px; }
.rng-primary-actions button { width: auto; min-height: 48px; margin: 0; padding: 0 16px; border: 0; border-radius: 7px; background: #087f6d; color: #fff; box-shadow: none; font-size: 14px; font-weight: 900; cursor: pointer; }
.rng-primary-actions #rngReset { border: 1px solid #d3deea; background: #fff; color: #475569; }
.rng-shortcut { margin: 9px 0 0; color: #8a96a7; font-size: 10px; text-align: center; }
.rng-shortcut kbd { padding: 2px 5px; border: 1px solid #cfd8e3; border-radius: 4px; background: #f3f6f9; color: #526078; font-family: inherit; }
.rng-output > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.rng-output > header > div:last-child { display: flex; gap: 6px; }
.rng-output > header button { width: auto; min-height: 35px; margin: 0; padding: 0 10px; border: 1px solid #d2dde9; border-radius: 6px; background: #fff; color: #435269; box-shadow: none; font-size: 10px; font-weight: 800; }
.rng-output > header button:disabled { background: #edf1f5; color: #a2acba; }
.rng-results { display: grid; gap: 10px; max-height: 540px; overflow-y: auto; }
.rng-empty { display: grid; min-height: 395px; padding: 28px; place-content: center; border: 1px dashed #c6d3e1; border-radius: 8px; background: #fff; text-align: center; }
.rng-empty[hidden] { display: none !important; }
.rng-empty img { margin: 0 auto 12px; border-radius: 8px; }
.rng-empty strong { color: #334155; font-size: 15px; }
.rng-empty p { max-width: 270px; margin: 6px 0 0; color: #7c899b; font-size: 11px; line-height: 1.6; }
.rng-result-set { padding: 14px; border: 1px solid #d8e2ec; border-radius: 7px; background: #fff; }
.rng-result-set header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rng-result-set header strong { color: #26354a; font-size: 13px; }
.rng-result-set header span { margin: 0; color: #8793a4; font-size: 10px; }
.rng-number-list { display: flex; flex-wrap: wrap; gap: 7px; }
.rng-number-list span { display: grid; min-width: 45px; min-height: 45px; padding: 6px; place-items: center; border-radius: 50%; background: #087f6d; color: #fff; font-size: 14px; font-weight: 900; }
.rng-number-list span:nth-child(5n+2) { background: #2f7fa9; }
.rng-number-list span:nth-child(5n+3) { background: #d39b18; }
.rng-number-list span:nth-child(5n+4) { background: #65758b; }
.rng-number-list span:nth-child(5n) { background: #b75c58; }
.rng-number-list.is-compact span { min-width: auto; min-height: 32px; padding: 5px 9px; border-radius: 6px; font-size: 11px; }
.rng-status { min-height: 42px; margin: 15px 0 0; padding: 11px 13px; border-radius: 6px; background: #eff8f6; color: #087f6d; font-size: 11px; line-height: 1.5; }
.rng-status.is-error { background: #fff1f0; color: #c2413b; }
.rng-history { padding: 22px 25px; border-top: 1px solid #dce5ef; }
.rng-history > header { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.rng-history header p { margin: 0; color: #8793a4; font-size: 10px; }
.rng-history-list { display: grid; gap: 7px; }
.rng-history-empty { padding: 18px; border: 1px dashed #cbd7e4; border-radius: 7px; color: #8793a4; text-align: center; font-size: 11px; }
.rng-history-row { display: grid; grid-template-columns: 95px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #dce5ef; border-radius: 7px; background: #f8fafc; }
.rng-history-row span { color: #8591a2; font-size: 10px; }
.rng-history-row strong { overflow: hidden; color: #344359; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rng-history-row button { width: auto; min-height: 30px; margin: 0; padding: 0 9px; border: 1px solid #d2dde9; border-radius: 5px; background: #fff; color: #526078; box-shadow: none; font-size: 10px; font-weight: 800; }
.rng-privacy { display: flex; gap: 10px; padding: 13px 25px; border-top: 1px solid #dce5ef; background: #eff8f6; color: #5f6e81; font-size: 11px; }
.rng-privacy strong { color: #087f6d; white-space: nowrap; }
.rng-guide { padding: 30px; }
.rng-guide > header h2 { margin: 0 0 10px; color: #111827; font-size: 27px; }
.rng-guide > header p { margin: 0; color: #64748b; line-height: 1.75; }
.rng-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 24px 0; }
.rng-steps > div { padding: 17px; border: 1px solid #dbe4ee; border-radius: 7px; background: #f8fafc; }
.rng-steps span { color: #087f6d; font-size: 10px; font-weight: 900; }
.rng-steps strong { display: block; margin-top: 4px; color: #172033; font-size: 14px; }
.rng-steps p { margin: 7px 0 0; color: #64748b; font-size: 11px; line-height: 1.6; }
.rng-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.rng-guide-grid section { padding: 20px 0; border-top: 1px solid #e2e8f0; }
.rng-guide-grid h3, .rng-formula h3, .rng-use-cases h3 { margin: 0 0 8px; color: #172033; font-size: 18px; }
.rng-guide-grid p, .rng-formula p { margin: 0; color: #59677b; font-size: 14px; line-height: 1.75; }
.rng-formula { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 20px 0; border-top: 1px solid #e2e8f0; }
.rng-formula > div { padding: 17px; border: 1px solid #cfe4df; border-radius: 7px; background: #eff8f6; }
.rng-formula strong { color: #087f6d; }
.rng-use-cases { padding: 20px 0; border-top: 1px solid #e2e8f0; }
.rng-use-cases ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 25px; margin: 0; padding-left: 20px; color: #59677b; font-size: 13px; line-height: 1.6; }
.rng-faq { padding-top: 20px; border-top: 1px solid #e2e8f0; }
.rng-faq h2 { margin: 0 0 12px; color: #172033; font-size: 21px; }
.rng-faq details { border-top: 1px solid #e2e8f0; }
.rng-faq summary { padding: 14px 0; color: #344359; font-size: 14px; font-weight: 800; cursor: pointer; }
.rng-faq details p { margin: -3px 0 15px; color: #64748b; font-size: 13px; line-height: 1.7; }
.rng-note { margin: 20px 0 0; padding: 16px 18px; border-left: 4px solid #087f6d; background: #eff8f6; color: #405166; font-size: 13px; line-height: 1.7; }
@media screen and (max-width: 980px) { .rng-workspace { grid-template-columns: 1fr; } .rng-settings { border-right: 0; border-bottom: 1px solid #dce5ef; } .rng-empty { min-height: 250px; } }
@media screen and (max-width: 640px) {
  .rng-heading h1 { font-size: 33px; } .rng-heading > p:last-child { font-size: 16px; }
  .rng-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; } .rng-presets > div { grid-column: 1 / -1; } .rng-presets button { width: 100%; }
  .rng-settings, .rng-output, .rng-history, .rng-guide { padding: 20px 16px; } .rng-field-grid { gap: 9px; }
  .rng-output > header { align-items: flex-start; } .rng-output > header > div:last-child { flex-direction: column; } .rng-output > header button { width: 82px; }
  .rng-number-list span { min-width: 42px; min-height: 42px; }
  .rng-history-row { grid-template-columns: 1fr auto; } .rng-history-row span { grid-column: 1 / -1; } .rng-history-row button { grid-column: 2; grid-row: 2; }
  .rng-privacy { display: block; padding: 13px 16px; } .rng-privacy strong { display: block; margin-bottom: 3px; }
  .rng-guide > header h2 { font-size: 24px; } .rng-steps, .rng-guide-grid, .rng-formula, .rng-use-cases ul { grid-template-columns: 1fr; }
}
