.sf-dialog {
  --sf-bg: #151616;
  --sf-text: #f5f3ed;
  --sf-muted: #b6b6ae;
  --sf-line: #434441;
  --sf-orange: #ff713d;
  position: fixed; inset: 0; box-sizing: border-box; color-scheme: dark;
  width: min(34.5rem, calc(100vw - 2rem)); max-width: none; max-height: min(90vh, 54rem);
  max-height: min(90dvh, 54rem); overflow: auto; padding: 0; margin: auto;
  color: var(--sf-text); background: var(--sf-bg); border: 1px solid #64645e; border-radius: 3px;
  font: 400 1rem/1.5 var(--he, Arial), sans-serif; text-align: start;
  box-shadow: 0 1.5rem 7rem #000c;
}
.sf-dialog *, .sf-dialog *::after, .sf-dialog *::before { box-sizing: border-box; }
.sf-dialog:not([open]) { display: none; }
.sf-dialog::backdrop { background: #070809d9; }
.sf-dialog button, .sf-dialog input, .sf-dialog a { font: inherit; }
.sf-dialog button, .sf-dialog a, .sf-dialog summary, .sf-dialog .sf-os { -webkit-tap-highlight-color: transparent; }
.sf-dialog :is(button, a, input, summary):focus-visible { outline: 2px solid var(--sf-orange); outline-offset: 3px; }
.sf-windowbar { position: sticky; inset-block-start: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; padding-inline: 1.25rem .4rem; border-bottom: 1px solid var(--sf-line); background: #1d1e1d; }
.sf-path { display: inline-flex; align-items: center; gap: .6rem; color: var(--sf-muted); font: 400 .8rem/1.3 var(--mono, monospace); }
.sf-path svg { color: var(--sf-orange); }
.sf-dialog .sf-close { display: grid; place-items: center; border: 0; min-height: 2.35rem; min-width: 2.35rem; margin: 0; padding: 0; color: #cecec7; background: transparent; border-radius: 2px; cursor: pointer; }
.sf-dialog .sf-close:hover { color: white; background: #32332f; }
.sf-body { padding: clamp(1.25rem, 4vw, 2rem); }
.sf-dialog h2 { font: 750 clamp(1.65rem, 4.8vw, 2.25rem)/1.2 var(--he, Arial), sans-serif; color: var(--sf-text); margin: 0 0 .6rem; letter-spacing: -.045em; }
.sf-dialog .sf-intro { font-size: 1rem; line-height: 1.6; color: var(--sf-muted); margin: 0 0 1.55rem; }
.sf-picker { margin: 0; padding: 0; border: 0; min-width: 0; }
.sf-picker legend { padding: 0; margin-block: 0 .55rem; font-size: .9rem; font-weight: 650; color: var(--sf-text); }
.sf-choices { display: flex; gap: .55rem; }
.sf-os { display: block; flex: 1; position: relative; cursor: pointer; }
.sf-os input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sf-os span { display: flex; justify-content: center; align-items: center; gap: .65rem; padding: .65rem; color: var(--sf-muted); border: 1px solid var(--sf-line); border-radius: 2px; background: #1c1d1b; font: 500 .9rem/1.35 var(--mono, monospace); }
.sf-os:hover span { border-color: #93958c; }
.sf-os input:checked + span { background: #2d221b; color: #ff946c; border-color: #d66840; }
.sf-os input:focus-visible + span { outline: 2px solid var(--sf-text); outline-offset: 2px; }
.sf-file { display: flex; gap: .75rem; margin-block: .9rem 1.1rem; padding: .95rem .75rem; background: #1d1e1d; border-inline-start: 2px solid #5b5f56; }
.sf-file-icon { display: inline-flex; color: #cccfc5; margin-block-start: .15rem; }
.sf-file strong { display: block; font-size: .94rem; line-height: 1.5; }
.sf-file p { margin: .1rem 0 0; color: var(--sf-muted); font-size: .875rem; line-height: 1.5; }
.sf-demo { border-block: 1px solid var(--sf-line); margin-block: .25rem 1.45rem; }
.sf-demo summary { color: var(--sf-text); display: flex; align-items: center; gap: .45rem; cursor: pointer; list-style: none; font-size: .95rem; padding-block: .7rem; }
.sf-demo summary::-webkit-details-marker { display: none; }
.sf-demo summary svg { flex: none; color: var(--sf-orange); }
[dir="rtl"] .sf-demo summary svg { transform: rotate(180deg); }
.sf-demo[open] summary svg { transform: rotate(90deg); }
.sf-demo kbd { font: 400 .75rem/1.4 var(--mono, monospace); border: 1px solid #565851; background: #222420; color: #d8d9cf; padding: 0 .3rem; margin-inline-start: auto; border-radius: 2px; }
.sf-demo-inner { padding-block: .2rem 1rem; }
.sf-demo-inner label { color: var(--sf-muted); display: block; font-size: .85rem; margin-block-end: .35rem; }
.sf-demo-row { display: flex; gap: .4rem; }
.sf-demo-row input { box-sizing: border-box; min-width: 0; flex: 1; font-size: 1rem; padding: .5rem; color: var(--sf-text); border: 1px solid #555850; border-radius: 1px; background: #0e100e; }
.sf-demo-row button { color: var(--sf-text); background: #292b26; font-size: .9rem; border: 1px solid #606259; border-radius: 1px; padding: .5rem .7rem; cursor: pointer; }
.sf-demo-row button:hover { background: #383b33; }
.sf-result:not([hidden]) { display: flex; flex-wrap: wrap; align-items: baseline; gap: .7rem; margin-top: .5rem; }
.sf-result span { color: var(--sf-muted); font-size: .83rem; }
.sf-result output { color: #ff9c78; overflow-wrap: anywhere; white-space: pre-wrap; }
.sf-checkout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; }
.sf-price { display: block; color: var(--sf-text); font: 700 1.8rem/1.1 var(--mono, monospace); letter-spacing: -.065em; }
.sf-dialog small, .sf-dialog .sf-checkout-note { color: var(--sf-muted); font: 400 .8rem/1.5 var(--he, Arial), sans-serif; }
.sf-dialog .sf-checkout-note { margin: .65rem 0 0; }
.sf-dialog .sf-primary { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; background: var(--sf-orange); color: #11120e; border: 1px solid var(--sf-orange); padding: .68rem 1rem; text-decoration: none; font-size: .98rem; font-weight: 700; line-height: 1.35; border-radius: 2px; }
.sf-dialog .sf-primary:hover { background: #ff9267; border-color: #ff9267; }
.sf-status { color: var(--sf-orange); font-size: .85rem; display: block; margin-block-end: .6rem; }
.sf-short .sf-intro { margin-block-end: 1.25rem; }
.sf-email { display: block; font: 400 1rem/1.5 var(--mono, monospace); margin-block: -.45rem 1.35rem; overflow-wrap: anywhere; }
@media (max-width: 420px) { .sf-dialog { width: calc(100vw - 1.25rem); } .sf-body { padding: 1.15rem; } }
@media (forced-colors: active) { .sf-os input:checked + span { outline: 2px solid Highlight; } }
.sf-dialog .sf-original { margin: -.2rem 0 .8rem; color: var(--sf-muted); font-size: .98rem; }
