@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.rng-workspace-tool {
  --rng-navy: #030164;
  --rng-indigo: #363199;
  --rng-teal: #2D7495;
  --rng-white: #ffffff;
  --rng-light: #f4f6fb;
  --rng-dark-text: #0f172a;
  --rng-muted: #aeb8d4;
  --rng-secondary: #4b5568;
  --rng-border: #e6e8f2;
  --rng-workspace: #080A38;
  --rng-panel: #10134D;
  --rng-line: rgba(186, 202, 255, .16);
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 54px 20px;
  color: var(--rng-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #030164 0%, #1a1878 45%, #2D7495 100%);
}
.rng-workspace-tool *, .rng-workspace-tool *::before, .rng-workspace-tool *::after { box-sizing: border-box; }
.rng-workspace-tool button, .rng-workspace-tool input, .rng-workspace-tool select, .rng-workspace-tool textarea { font: inherit; }
.rng-shell { width: 100%; max-width: 1200px; margin: 0 auto; }
.rng-hero { text-align: center; margin: 0 auto 30px; max-width: 740px; }
.rng-hero h1 { margin: 0; color: #fff; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -1px; font-weight: 800; }
.rng-hero p { margin: 13px 0 0; color: #e6efff; font-size: 16px; line-height: 1.6; }
.rng-workspace { overflow: hidden; border: 1px solid rgba(203, 218, 255, .22); border-radius: 18px; background: var(--rng-workspace); box-shadow: 0 24px 65px rgba(0, 0, 35, .38); }
.rng-toolbar, .rng-results-head, .rng-history-head, .rng-status, .rng-brand, .rng-toolbar-actions, .rng-result-actions { display: flex; align-items: center; }
.rng-toolbar { justify-content: space-between; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--rng-line); background: rgba(16, 19, 77, .92); }
.rng-brand { gap: 10px; min-width: 0; color: #fff; font-size: 14px; }
.rng-brand-dot, .rng-status-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #55d6dd; box-shadow: 0 0 0 4px rgba(85, 214, 221, .13); }
.rng-badge { padding: 4px 8px; border: 1px solid rgba(105, 222, 228, .35); border-radius: 99px; color: #c9fbff; background: rgba(45, 116, 149, .26); font-size: 11px; font-weight: 700; }
.rng-toolbar-actions, .rng-result-actions { gap: 8px; flex-wrap: wrap; }
.rng-btn { min-height: 36px; border: 1px solid transparent; border-radius: 8px; padding: 8px 12px; cursor: pointer; color: #fff; background: var(--rng-indigo); font-size: 12px; font-weight: 750; line-height: 1; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.rng-btn:hover { transform: translateY(-1px); background: #4540ae; }
.rng-btn:active { transform: translateY(0); }
.rng-btn:focus-visible, .rng-workspace-tool input:focus-visible, .rng-workspace-tool select:focus-visible, .rng-workspace-tool textarea:focus-visible { outline: 2px solid #6be4e9; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(107, 228, 233, .14); }
.rng-btn-quiet { border-color: rgba(190, 207, 255, .2); color: #eaf1ff; background: rgba(255, 255, 255, .06); }
.rng-btn-quiet:hover { background: rgba(45, 116, 149, .38); border-color: rgba(112, 224, 230, .42); }
.rng-btn-danger { color: #ffd9df; background: rgba(142, 43, 68, .38); }
.rng-help { padding: 13px 20px; border-bottom: 1px solid var(--rng-line); color: #dbe8ff; background: rgba(45, 116, 149, .17); font-size: 13px; line-height: 1.55; }
.rng-help strong { color: #fff; margin-right: 8px; }
.rng-mobile-config { display: none; padding: 12px 16px; border-bottom: 1px solid var(--rng-line); }
.rng-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-width: 0; }
.rng-sidebar { min-width: 0; padding: 20px; border-right: 1px solid var(--rng-line); background: #0b0e43; }
.rng-panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 20px; color: #fff; font-size: 15px; font-weight: 800; }
.rng-panel-title small, .rng-field small { color: var(--rng-muted); font-size: 11px; font-weight: 500; }
.rng-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; color: #eef3ff; font-size: 12px; font-weight: 700; }
.rng-label { color: #eef3ff; }
.rng-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rng-workspace-tool input, .rng-workspace-tool select, .rng-workspace-tool textarea { width: 100%; min-width: 0; border: 1px solid rgba(191, 207, 255, .22); border-radius: 8px; color: #fff; background: #080a38; padding: 10px 11px; font-size: 13px; transition: border-color .2s ease, box-shadow .2s ease; }
.rng-workspace-tool input::placeholder { color: #8490b4; }
.rng-workspace-tool select option { color: #0f172a; background: #f4f6fb; }
.rng-segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid rgba(191, 207, 255, .18); border-radius: 9px; background: #080a38; }
.rng-segment { border: 0; border-radius: 6px; padding: 9px 6px; cursor: pointer; color: #aeb8d4; background: transparent; font-size: 12px; font-weight: 750; transition: all .2s ease; }
.rng-segment.is-active { color: #fff; background: var(--rng-indigo); box-shadow: 0 3px 10px rgba(0, 0, 0, .22); }
.rng-stepper { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; }
.rng-stepper input { position: relative; z-index: 1; border-radius: 0; text-align: center; }
.rng-stepper button { border: 1px solid rgba(191, 207, 255, .22); cursor: pointer; color: #dce9ff; background: #171a5e; font-size: 18px; }
.rng-stepper button:first-child { border-radius: 8px 0 0 8px; }
.rng-stepper button:last-child { border-radius: 0 8px 8px 0; }
.rng-toggle-row { display: flex; align-items: center; gap: 10px; margin: 2px 0 16px; cursor: pointer; color: #fff; font-size: 12px; }
.rng-toggle-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rng-toggle-ui { position: relative; width: 35px; height: 20px; flex: 0 0 35px; border-radius: 99px; background: #465070; transition: background .2s ease; }
.rng-toggle-ui::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; content: ""; transition: transform .2s ease; }
.rng-toggle-row input:checked + .rng-toggle-ui { background: var(--rng-teal); }
.rng-toggle-row input:checked + .rng-toggle-ui::after { transform: translateX(15px); }
.rng-toggle-row small { display: block; margin-top: 2px; color: var(--rng-muted); font-size: 10px; }
.rng-validation { min-height: 18px; margin: -4px 0 10px; color: #ffb6c1; font-size: 11px; line-height: 1.35; }
.rng-btn-generate { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 12px 14px; background: linear-gradient(135deg, #2d7495, #363199); font-size: 13px; }
.rng-btn-generate:hover { background: linear-gradient(135deg, #368aad, #4540ae); box-shadow: 0 7px 20px rgba(45, 116, 149, .28); }
.rng-btn-sample { width: 100%; margin-top: 9px; color: #dbe8ff; background: transparent; border-color: rgba(190, 207, 255, .19); }
.rng-main { min-width: 0; padding: 22px; background: #080A38; }
.rng-results-head { justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.rng-results-head h2, .rng-history h3 { margin: 0; color: #fff; font-size: 17px; letter-spacing: -.2px; }
.rng-results-head span { display: block; margin-top: 4px; color: var(--rng-muted); font-size: 11px; }
.rng-output { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; min-height: 224px; max-height: 335px; overflow: auto; padding: 16px; border: 1px solid var(--rng-line); border-radius: 12px; background: radial-gradient(circle at top right, rgba(45, 116, 149, .14), transparent 38%), #060831; scrollbar-color: #2d7495 #10134d; }
.rng-output::-webkit-scrollbar, .rng-history-list::-webkit-scrollbar { width: 8px; height: 8px; }
.rng-output::-webkit-scrollbar-thumb, .rng-history-list::-webkit-scrollbar-thumb { border-radius: 8px; background: #2d7495; }
.rng-output::-webkit-scrollbar-track, .rng-history-list::-webkit-scrollbar-track { background: #10134d; }
.rng-empty { grid-column: 1 / -1; align-self: center; text-align: center; color: #b9c6e4; }
.rng-empty span { display: block; margin-bottom: 8px; color: #68dce2; font-size: 27px; }
.rng-empty strong { display: block; color: #fff; font-size: 14px; }
.rng-empty p { margin: 5px 0 0; font-size: 12px; }
.rng-value { display: flex; align-items: center; justify-content: center; min-height: 55px; overflow: hidden; border: 1px solid rgba(112, 224, 230, .2); border-radius: 9px; color: #efffff; background: linear-gradient(145deg, rgba(54, 49, 153, .5), rgba(16, 19, 77, .8)); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; font-weight: 800; word-break: break-all; }
.rng-value-single { grid-column: 1 / -1; min-height: 190px; border-color: rgba(112, 224, 230, .38); color: #fff; font-size: clamp(36px, 8vw, 72px); letter-spacing: -2px; box-shadow: inset 0 0 40px rgba(45, 116, 149, .12); }
.rng-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 13px; overflow: hidden; border: 1px solid var(--rng-line); border-radius: 10px; background: #10134D; }
.rng-summary div { min-width: 0; padding: 11px 12px; border-right: 1px solid var(--rng-line); }
.rng-summary div:last-child { border-right: 0; }
.rng-summary small { display: block; margin-bottom: 4px; color: var(--rng-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .55px; }
.rng-summary strong { display: block; overflow: hidden; color: #fff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.rng-plain-wrap { margin-top: 14px; }
.rng-plain-wrap label { display: block; margin-bottom: 6px; color: #c4d0eb; font-size: 11px; font-weight: 700; }
.rng-plain-wrap textarea { min-height: 67px; resize: vertical; color: #cceff2; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.5; }
.rng-history { margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--rng-line); }
.rng-history-head { justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.rng-history-list { max-height: 185px; overflow: auto; scrollbar-color: #2d7495 #10134d; }
.rng-history-empty { margin: 0; padding: 14px; border: 1px dashed rgba(190, 207, 255, .18); border-radius: 9px; color: var(--rng-muted); text-align: center; font-size: 12px; }
.rng-history-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; width: 100%; margin-bottom: 7px; padding: 10px 11px; border: 1px solid rgba(190, 207, 255, .14); border-radius: 8px; cursor: pointer; color: #dce8ff; text-align: left; background: rgba(16, 19, 77, .75); }
.rng-history-item:hover { border-color: rgba(102, 222, 228, .46); background: rgba(45, 116, 149, .18); }
.rng-history-item strong { display: block; color: #fff; font-size: 12px; }
.rng-history-item span { display: block; overflow: hidden; margin-top: 3px; color: #aeb8d4; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rng-history-item time { align-self: center; color: #8d9bbd; font-size: 10px; }
.rng-status { gap: 9px; min-height: 42px; padding: 10px 20px; border-top: 1px solid var(--rng-line); color: #c4d4ef; background: #070934; font-size: 11px; }
.rng-status.is-success .rng-status-dot { animation: rng-pulse 1.5s ease-in-out infinite; }
.rng-status.is-error .rng-status-dot { background: #ff8095; box-shadow: 0 0 0 4px rgba(255, 128, 149, .12); }
@keyframes rng-pulse { 50% { box-shadow: 0 0 0 7px rgba(85, 214, 221, 0); } }
@media (max-width: 767px) {
  .rng-workspace-tool { padding: 34px 12px; }
  .rng-hero { margin-bottom: 23px; }
  .rng-toolbar { padding: 13px 14px; }
  .rng-brand strong { font-size: 12px; }
  .rng-badge { display: none; }
  .rng-mobile-config { display: block; }
  .rng-btn-mobile { width: 100%; }
  .rng-layout { display: block; }
  .rng-sidebar { display: none; border-right: 0; border-bottom: 1px solid var(--rng-line); }
  .rng-sidebar.is-open { display: block; }
  .rng-main { padding: 16px; }
  .rng-results-head { align-items: flex-start; flex-direction: column; }
  .rng-result-actions { width: 100%; }
  .rng-result-actions .rng-btn { flex: 1; }
  .rng-summary { grid-template-columns: 1fr 1fr; }
  .rng-summary div:nth-child(2) { border-right: 0; }
  .rng-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--rng-line); }
  .rng-history-head { align-items: flex-start; flex-direction: column; }
  .rng-status { padding: 10px 14px; }
}
@media (max-width: 374px) {
  .rng-hero h1 { font-size: 26px; }
  .rng-toolbar-actions { gap: 5px; }
  .rng-toolbar .rng-btn { padding: 7px 8px; }
  .rng-result-actions .rng-btn { padding: 8px 7px; font-size: 10px; }
}
@media (min-width: 375px) and (max-width: 429px) { .rng-hero h1 { font-size: 28px; } }
@media (min-width: 430px) and (max-width: 767px) { .rng-hero h1 { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) {
  .rng-workspace-tool *, .rng-workspace-tool *::before, .rng-workspace-tool *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}