.rc-editor {
  --editor-paper: #eee8db;
  --editor-muted: #aaa99f;
  --editor-line: #ffffff24;
  --editor-orange: #e77f47;
  --editor-cyan: #8cb9b7;
  color: var(--editor-paper);
  background: #191c1ced;
  border: 1px solid #d8d2bf30;
  box-shadow: 0 20px 80px #0007;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  max-height: calc(100dvh - 48px);
  min-height: 0;
  text-align: left;
  font: 13px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  pointer-events: auto;
  isolation: isolate;
  overflow: hidden;
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
}
.rc-editor *, .rc-editor *::before, .rc-editor *::after { box-sizing: border-box; }
.rc-editor [hidden] { display: none !important; }
.rc-editor button, .rc-editor input, .rc-editor select, .rc-editor textarea { font: inherit; color: inherit; letter-spacing: inherit; }
.rc-editor button { cursor: pointer; text-transform: none; border-radius: 0; touch-action: manipulation; }
.rc-editor button:disabled { cursor: default; opacity: .37; }
.rc-editor :is(button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--editor-cyan); outline-offset: 3px; }
.rc-editor :is(input, select, textarea)[aria-invalid="true"] { border-color: #f4a789; }
.rc-editor-header { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 24px 24px 18px; }
.rc-editor-kicker { margin: 0 0 9px; font: 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1.55px; color: var(--editor-orange); }
.rc-editor-header h2 { margin: 0; font-size: clamp(23px, 2.4vw, 28px); font-weight: 600; line-height: 1.12; letter-spacing: -1.15px; }
.rc-editor-close { border: 1px solid var(--editor-line); background: transparent; min-width: 36px; min-height: 36px; margin: -4px -5px 0 0; font-size: 25px !important; font-weight: 300; line-height: 1; }
.rc-editor-close:hover { background: #ffffff0c; }
.rc-editor-preview-note { flex: 0 0 auto; padding: 9px 24px; display: flex; align-items: center; gap: 7px; border-block: 1px solid var(--editor-line); color: var(--editor-cyan); font: 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1px; }
.rc-editor-preview-note > span { height: 5px; width: 5px; background: var(--editor-cyan); border-radius: 50%; flex-shrink: 0; }
.rc-editor-preview-note small { font: 11px/1.4 Arial, Helvetica, sans-serif; letter-spacing: 0; color: var(--editor-muted); margin-left: auto; }
.rc-editor-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #736e5f #0000; padding: 18px 24px 12px; min-height: 0; }
.rc-editor-presets { display: grid; grid-template-columns: 1fr 1fr 1fr; border: 1px solid var(--editor-line); }
.rc-editor-preset { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 64px; padding: 10px; border: 0; border-right: 1px solid var(--editor-line); background: transparent; text-align: left; gap: 4px; position: relative; }
.rc-editor-preset:last-child { border-right: 0; }
.rc-editor-preset small { font: 9px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1px; color: var(--editor-muted); }
.rc-editor-preset span { font-size: 11px; font-weight: 600; line-height: 1.25; }
.rc-editor-preset.is-active { background: #e77f4716; }
.rc-editor-preset.is-active::after { content: ''; position: absolute; height: 2px; background: var(--editor-orange); bottom: 0; left: 0; right: 0; }
.rc-editor-preset.is-active small { color: var(--editor-orange); }
.rc-editor-preset:hover { background: #ffffff0b; }
.rc-editor-preset-note { min-height: 29px; color: var(--editor-muted); margin: 9px 0 14px; font-size: 11px; line-height: 1.45; }
.rc-editor-field { display: flex; flex-direction: column; gap: 7px; font-size: 11px; font-weight: 500; line-height: 1.35; margin: 0 0 14px; color: #d7d4c9; }
.rc-editor-field :is(input:not([type="range"]), select, textarea) { width: 100%; border: 1px solid var(--editor-line); background: #101414a6; padding: 10px 11px; min-height: 40px; font-size: 13px; line-height: 1.4; outline-offset: 1px; border-radius: 0; }
.rc-editor-field select { padding-right: 26px; }
.rc-editor-field option { background: #202524; color: var(--editor-paper); }
.rc-editor-name { margin-bottom: 18px; }
.rc-editor-name input { font-size: 16px !important; font-weight: 500; }
.rc-editor-tabs { display: flex; border-bottom: 1px solid var(--editor-line); margin: 0 0 19px; gap: 18px; }
.rc-editor-tabs button { position: relative; min-height: 42px; display: flex; align-items: center; gap: 7px; border: 0; padding: 0 2px 12px; color: #aaa99f; background: transparent; font: 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.rc-editor-tabs button span { font: 600 13px/1.2 Arial, Helvetica, sans-serif; }
.rc-editor-tabs button[aria-selected="true"] { color: var(--editor-orange); }
.rc-editor-tabs button[aria-selected="true"] span { color: var(--editor-paper); }
.rc-editor-tabs button[aria-selected="true"]::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--editor-orange); }
.rc-editor-form { margin: 0; }
.rc-editor-tabpanel { min-height: 306px; }
.rc-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.rc-editor-grid > :last-child { grid-column: 1 / -1; margin-bottom: 2px; }
.rc-editor-help { font-size: 11px; color: var(--editor-muted); line-height: 1.6; margin: 4px 0 16px; }
.rc-editor-range > span { display: flex; align-items: center; justify-content: space-between; }
.rc-editor-range output { font: 12px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--editor-paper); }
.rc-editor-range input { height: 21px; padding: 0; width: 100%; margin: 0; accent-color: var(--editor-orange); background: transparent; cursor: pointer; touch-action: pan-y; }
.rc-editor-range small { color: var(--editor-muted); font-size: 10px; font-weight: 400; }
.rc-editor-range.is-inactive input { opacity: .25; cursor: default; }
.rc-editor-seed-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.rc-editor-seed-row .rc-editor-field { margin: 0; }
.rc-editor-seed-row .rc-editor-button { min-width: 90px; }
.rc-editor-seed-row + .rc-editor-help { margin-top: 7px; }
.rc-editor-section-heading { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 500; }
.rc-editor-section-heading strong { font: 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--editor-cyan); }
.rc-editor-cast-list { margin: -3px 0 20px; }
.rc-editor-cast { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--editor-line); padding: 12px 0; }
.rc-editor-cast > label { display: flex; flex-direction: column; gap: 4px; padding-left: 10px; border-left: 2px solid #86908a; }
.rc-editor-cast-vikings > label { border-left-color: #b79069; }
.rc-editor-cast-soldiers > label { border-left-color: #92996b; }
.rc-editor-cast strong { font-size: 13px; font-weight: 600; }
.rc-editor-cast small { font-size: 10px; color: var(--editor-muted); }
.rc-editor-stepper { display: flex; flex-shrink: 0; align-items: center; border: 1px solid var(--editor-line); }
.rc-editor-stepper :is(button, input) { min-width: 0; width: 35px; height: 40px; background: transparent; border: 0; text-align: center; }
.rc-editor-stepper button { font-size: 18px; }
.rc-editor-stepper button:hover:not(:disabled) { background: #ffffff0b; }
.rc-editor-stepper input { font: 14px/1 ui-monospace, SFMono-Regular, Consolas, monospace; background: #10141466; appearance: textfield; }
.rc-editor-stepper input::-webkit-inner-spin-button, .rc-editor-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.rc-editor :is(.rc-editor-library, .rc-editor-portable) { border-top: 1px solid var(--editor-line); }
.rc-editor summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; min-height: 46px; font-size: 12px; font-weight: 500; }
.rc-editor summary::-webkit-details-marker { display: none; }
.rc-editor summary::before { content: '+'; color: var(--editor-orange); font-size: 16px; width: 12px; font-weight: 400; }
.rc-editor details[open] > summary::before { content: '−'; }
.rc-editor summary > span { color: var(--editor-muted); font-size: 10px; margin-left: auto; font-weight: 400; }
.rc-editor-details-body { padding: 0 0 14px; }
.rc-editor-details-body > .rc-editor-help { margin-top: 0; }
.rc-editor-actions { display: flex; gap: 8px; margin: 10px 0 14px; }
.rc-editor-actions .rc-editor-button { flex: 1; padding-inline: 8px; }
.rc-editor-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; background: #ffffff05; border: 1px solid #ffffff30; padding: 10px 14px; font-size: 11px !important; line-height: 1.3; font-weight: 600 !important; }
.rc-editor-button:hover:not(:disabled) { border-color: #eee8db80; background: #ffffff0c; }
.rc-editor-button.rc-editor-subtle { color: var(--editor-muted); font-weight: 400 !important; }
.rc-editor-wide { width: 100%; margin-bottom: 16px; }
.rc-editor textarea { resize: vertical; font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace !important; tab-size: 2; min-height: 140px; max-height: 400px; white-space: pre; }
.rc-editor-json-status, .rc-editor-library-status, .rc-editor-status { margin: 0; font-size: 11px; line-height: 1.5; color: var(--editor-cyan); overflow-wrap: anywhere; }
.rc-editor .is-error { color: #ffc1a5; }
.rc-editor-footer { flex: 0 0 auto; padding: 11px 24px 22px; border-top: 1px solid var(--editor-line); background: #1a1d1c; }
.rc-editor-status:not(:empty) { margin-bottom: 8px; }
.rc-editor-summary { font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--editor-muted); margin: 0 0 10px; }
.rc-editor-play { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; border: 0; padding: 14px 18px; background: var(--editor-orange); color: #1d1a15 !important; font-size: 14px !important; font-weight: 700 !important; }
.rc-editor-play:hover:not(:disabled) { background: #f39259; }
.rc-editor-play span { font-size: 19px; line-height: 1; font-weight: 400; }
@media (max-width: 720px) {
  .rc-editor { width: 100%; max-height: min(76dvh, 800px); }
  .rc-editor-header { padding: 18px 18px 14px; }
  .rc-editor-header h2 { font-size: 25px; }
  .rc-editor-preview-note { padding-inline: 18px; }
  .rc-editor-scroll { padding: 14px 18px 10px; }
  .rc-editor-footer { padding: 10px 18px 16px; }
  .rc-editor-tabs { gap: 24px; }
  .rc-editor-tabpanel { min-height: 280px; }
  .rc-editor-cast small { font-size: 9px; }
  .rc-editor-stepper :is(button, input) { width: 37px; height: 42px; }
  .rc-editor-field :is(input:not([type="range"]),select,textarea) { font-size: 16px; }
  .rc-editor-close { min-width: 40px; min-height: 40px; }
}
@media (max-height: 560px) and (min-width: 600px) {
  .rc-editor { width: 380px; max-height: calc(100dvh - 20px); }
  .rc-editor-header { padding: 13px 18px 10px; }
  .rc-editor-header h2 { font-size: 22px; }
  .rc-editor-kicker { margin-bottom: 5px; font-size: 8px; }
  .rc-editor-preview-note { padding: 6px 18px; }
  .rc-editor-scroll { padding: 12px 18px 8px; }
  .rc-editor-footer { padding: 8px 18px 12px; }
  .rc-editor-summary { margin-bottom: 6px; font-size: 9px; }
  .rc-editor-play { min-height: 42px; padding-block: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-editor *, .rc-editor *::before, .rc-editor *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
