.rx-shell {
  --rx-brand: #185641;
  --rx-brand-text: #fff;
  --rx-surface: var(--white, #fff);
  --rx-inset: var(--ivory, #f6f8f3);
  --rx-outline: var(--line, #cedad1);
  --rx-focus: #997118;
  --rx-error: #842e29;
  --rx-error-surface: #fff4f0;
  --rx-text: var(--ink, #203d33);
  --rx-dim: var(--muted, #506257);
  box-sizing: border-box;
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: clamp(1rem, 3.6vw, 2.7rem) clamp(1rem, 4.4vw, 3.5rem) clamp(3rem, 7vw, 5rem);
  color: var(--rx-text);
  font: 400 1rem/1.55 var(--sans, Manrope, 'Segoe UI', sans-serif);
  overflow-wrap: anywhere;
}
html[data-theme="dark"] .rx-shell {
  --rx-brand: #b7ddc8;
  --rx-brand-text: #103626;
  --rx-focus: #efd08b;
  --rx-error: #ffcec4;
  --rx-error-surface: #392923;
}
.rx-shell *, .rx-shell *::before, .rx-shell *::after { box-sizing: border-box; }
.rx-shell :is(h1,h2,h3,p,ul,ol,dl,fieldset) { margin: 0; }
.rx-shell :is(h1,h2,h3) { color: var(--rx-text); text-wrap: balance; }
.rx-shell h1, .rx-hero h1 {
  font: 500 clamp(2.55rem, 6vw, 4.6rem)/1 var(--serif, Georgia, serif);
  letter-spacing: -.035em;
}
.rx-shell h2 { font: 550 clamp(1.85rem, 3.5vw, 2.55rem)/1.1 var(--serif, Georgia, serif); letter-spacing: -.024em; }
.rx-shell h3 { font: 700 1.06rem/1.38 var(--sans, Manrope, sans-serif); }
.rx-shell a { color: var(--rx-brand); text-underline-offset: .23em; }
.rx-shell :is(input,select,textarea,button,a):focus-visible { outline: 3px solid var(--rx-focus); outline-offset: 3px; }
.rx-masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rx-outline); }
.rx-shell .rx-home { display: inline-flex; min-height: 44px; align-items: center; flex-shrink: 0; }
.rx-home img { display: block; width: clamp(7.4rem, 18vw, 9rem); height: auto; }
html[data-theme="dark"] .rx-home { background: #f8faf5; border-radius: .45rem; padding: .35rem .6rem; }
.rx-lang { background: var(--rx-surface); color: var(--rx-brand); border: 1px solid var(--rx-outline); border-radius: 999px; min-height: 44px; padding: .4rem .9rem; font: 700 .88rem/1.25 var(--sans,Manrope,sans-serif); cursor: pointer; }
.rx-hero { display: grid; gap: .75rem; padding: clamp(1.75rem,4vw,3rem) 0 1.35rem; }
.rx-hero p { color: var(--rx-dim); max-width: 65ch; }
.rx-switch { display: inline-flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.rx-switch button { padding: .55rem .9rem; min-height: 44px; color: var(--rx-brand); border: 1px solid var(--rx-outline); background: var(--rx-surface); border-radius: 999px; font: 700 .94rem/1.3 var(--sans,Manrope,sans-serif); cursor: pointer; }
.rx-switch button[aria-pressed="true"] { background: var(--rx-brand); color: var(--rx-brand-text); border-color: var(--rx-brand); }
.rx-layout { display: grid; gap: 1.3rem; align-items: start; }
.rx-card { background: var(--rx-surface); border: 1px solid var(--rx-outline); border-radius: 1.1rem; padding: clamp(1.1rem,3vw,2rem); min-width: 0; }
.rx-stack, .rx-grid, .rx-field { display: grid; min-width: 0; }
.rx-stack { gap: 1rem; align-content: start; }
.rx-grid { gap: 1rem; align-items: start; }
.rx-field { gap: .35rem; color: var(--rx-text); font-weight: 650; }
.rx-field small, .rx-hint { font-size: .91rem; line-height: 1.5; color: var(--rx-dim); font-weight: 450; }
.rx-shell :is(input:not([type="radio"]):not([type="checkbox"]),textarea,select) { width: 100%; min-width: 0; min-height: 46px; padding: .65rem .75rem; border: 1px solid var(--rx-outline); background: var(--rx-inset); color: var(--rx-text); border-radius: .48rem; font: 500 1rem/1.4 var(--sans,Manrope,sans-serif); }
.rx-shell textarea { resize: vertical; }
.rx-shell input[readonly] { color: var(--rx-dim); }
.rx-shell input[type="file"] { font-size: .91rem; overflow: hidden; }
.rx-shell input::file-selector-button { color: var(--rx-brand); background: var(--rx-surface); margin-right: .55rem; padding: .4rem .55rem; border: 1px solid var(--rx-outline); border-radius: .35rem; font: inherit; cursor: pointer; }
.rx-shell :is(input[type="checkbox"],input[type="radio"]) { accent-color: var(--rx-brand); width: 1.12rem; height: 1.12rem; flex: 0 0 auto; margin: .22rem 0 0; }
.rx-check { display: flex; align-items: flex-start; gap: .65rem; line-height: 1.45; }
.rx-shell .rx-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.rx-shell .rx-button, .rx-shell .rx-secondary { display: inline-flex; justify-content: center; align-items: center; gap: .4rem; min-height: 46px; min-width: 0; max-width: 100%; padding: .65rem 1.05rem; border: 1px solid var(--rx-brand); border-radius: .56rem; background: var(--rx-brand); color: var(--rx-brand-text); text-decoration: none; text-align: center; font: 700 1rem/1.3 var(--sans,Manrope,sans-serif); cursor: pointer; }
.rx-shell .rx-secondary { background: var(--rx-surface); border-color: var(--rx-outline); color: var(--rx-brand); }
.rx-shell button:disabled { cursor: wait; opacity: .64; }
.rx-shell .rx-status, .rx-shell .rx-error { padding: .75rem 1rem; border-left: 3px solid var(--rx-brand); border-radius: .35rem; background: var(--rx-inset); color: var(--rx-text); }
.rx-shell .rx-error { background: var(--rx-error-surface); color: var(--rx-error); border-color: var(--rx-error); }
.rx-guide { background: var(--rx-inset); }
.rx-guide ol { padding-left: 1.45rem; display: grid; gap: .9rem; }
.rx-guide li { padding-left: .25rem; }
.rx-guide li::marker { color: var(--rx-brand); font-weight: 750; }
.rx-guide li p { margin-top: .15rem; color: var(--rx-dim); }
.rx-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 1rem; row-gap: .45rem; }
.rx-details dt { color: var(--rx-dim); }
.rx-details dd { margin: 0; font-weight: 650; }
.rx-shell .rx-box { display: grid; gap: .75rem; min-width: 0; padding: 1rem; background: var(--rx-inset); border-radius: .65rem; border: 1px solid var(--rx-outline); }
.rx-shell .rx-code { font-family: ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; font-size: 1rem; letter-spacing: .025em; user-select: all; }
.rx-shell .rx-message { white-space: pre-wrap; }
.rx-shell fieldset { min-width: 0; padding: 0; border: 0; }
.rx-shell legend { font-weight: 700; margin-bottom: .5rem; }
.rx-choice-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.rx-choice { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; border: 1px solid var(--rx-outline); border-radius: .45rem; padding: .45rem .75rem; background: var(--rx-surface); }
.rx-choice input[type="radio"] { margin: 0; }
.rx-shell hr { border: 0; border-top: 1px solid var(--rx-outline); margin: .1rem 0; }
@media (min-width: 680px) { .rx-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 900px) { .rx-layout { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); } }
@media (max-width: 440px) { .rx-details { grid-template-columns: minmax(0,1fr); gap: .1rem; } .rx-details dd + dt { margin-top: .5rem; } .rx-actions > :is(.rx-button,.rx-secondary) { flex: 1 1 auto; } }

.rx-shell .rx-demo-notice { margin-bottom: 1rem; max-width: 76ch; }
.rx-demo-notice strong { display: block; margin-bottom: .25rem; }
.rx-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .35rem 1rem; background: var(--rx-inset); border: 1px solid var(--rx-outline); border-radius: .65rem; padding: .8rem 1rem; }
.rx-total strong { font: 700 1.35rem/1.35 var(--sans,Manrope,sans-serif); font-variant-numeric: tabular-nums; }
.rx-checkout { display: grid; min-width: 0; gap: .7rem; }
.rx-checkout-frame { width: 100%; min-width: 0; height: clamp(32rem, 76dvh, 49rem); border: 1px solid var(--rx-outline); border-radius: .65rem; background: #fff; }
