:root {
  color-scheme: dark;
  --page: #0b0e0f;
  --surface: #111719;
  --subtle: #192124;
  --ink: #f0f3f2;
  --muted: #a8b2b3;
  --line: #2b3639;
  --control-line: #71868c;
  --accent: #a0d6c0;
  --accent-hover: #bce7d4;
  --accent-tint: #203e39;
  --error: #f2ba9f;
  --error-bg: #32251f;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft JhengHei", "Noto Sans", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a, input, textarea, summary { touch-action: manipulation; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; width: 18px; height: 18px; flex-shrink: 0; }
button svg { pointer-events: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #345b53; color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 16px; transform: translateY(-160%); background: var(--accent); color: #0b201b; padding: 12px 20px; }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid #232c2e; background: var(--page); }
.header-inner, .page-shell { width: 100%; max-width: 1280px; margin: auto; padding-inline: 48px; }
.header-inner { display: flex; align-items: center; gap: 48px; height: 88px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; width: 156px; height: auto; }
.main-nav { display: flex; align-self: stretch; gap: 28px; margin-left: 16px; font-size: 14px; color: var(--muted); }
.main-nav a { position: relative; display: flex; align-items: center; padding: 12px 0; }
.main-nav a:first-child { color: var(--muted); }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; gap: 24px; align-items: center; margin-left: auto; font-size: 14px; color: var(--muted); }
.language-control { position: relative; }
.language-trigger { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0 8px 8px; }
.language-arrow svg { width: 12px; height: 12px; }
.language-trigger[aria-expanded=true] .language-arrow { transform: rotate(180deg); }
.language-menu { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: 260px; padding: 8px; border: 1px solid #40585f; border-radius: 8px; background: #152128; box-shadow: 0 12px 32px #0006; }
.language-menu-header { margin: 8px 12px; color: var(--muted); font-size: 13px; }
.language-menu, .endpoint-menu { overflow-y: auto; overscroll-behavior: contain; }
.language-menu.opens-up, .endpoint-menu.opens-up { top: auto; bottom: calc(100% + 8px); }
.language-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; font-size: 14px; border-radius: 2px; }
.language-item:hover, .language-item:focus-visible { background: var(--subtle); }
.language-item[aria-current=page] { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.language-code { margin-left: auto; font: 11px var(--mono); color: var(--muted); }
.language-item svg { width: 16px; visibility: hidden; }
.language-item[aria-current=page] svg { visibility: visible; }
.page-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 64px; min-height: clamp(640px,calc(100vh - 88px),820px); min-height: clamp(640px,calc(100svh - 88px),820px); padding: 76px 0 72px; }
.hero-copy { min-width: 0; }
.hero-eyebrow { margin: 0 0 24px; color: var(--accent); font-size: 13px; line-height: 1.5; font-weight: 500; letter-spacing: .02em; }
h1 { margin: 0; font-size: clamp(48px,5.1vw,72px); line-height: 1.06; font-weight: 600; letter-spacing: -.045em; }
h1 span { display: block; color: var(--accent); }
.hero-description { max-width: 490px; margin: 26px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.hero-start { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 12px 22px; margin-top: 28px; border: 1px solid #e5eeea; border-radius: 5px; background: #e5eeea; color: #13231c; font-size: 14px; font-weight: 600; transition: background .15s,border-color .15s; }
.hero-start:hover { background: #fff; border-color: #fff; }
.hero-start svg { width: 16px; height: 16px; }
.hero-preview { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #384744; border-radius: 10px; background: #0d1415; box-shadow: 0 16px 42px #0003; }
.hero-preview-heading { display: flex; align-items: center; min-height: 58px; padding: 7px 18px; border-bottom: 1px solid #2b3935; background: #141e1d; font: 12px/1.5 var(--mono); }
.hero-tabs { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hero-tab { min-height: 40px; padding: 7px 12px; border: 1px solid transparent; border-radius: 5px; background: transparent; font: inherit; color: #a8b8b0; white-space: nowrap; transition: color .15s,background .15s,border-color .15s; }
.hero-tab:hover { color: var(--ink); background: #1a2723; }
.hero-tab[aria-selected=true] { color: #c0ebd8; border-color: #455f53; background: #23382d; box-shadow: inset 0 1px #ffffff05; }
.hero-tab-arrow { display: inline-flex; flex: 0 0 auto; color: #799a88; }
.hero-tab-arrow svg { width: 15px; height: 15px; }
.hero-panel:not([hidden]) { animation: hero-reveal .16s ease-out; }
@keyframes hero-reveal { from { opacity: .75; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-panel:not([hidden]) { animation: none; } }
.hero-code-window { position: relative; height: 280px; overflow: hidden; }
.hero-code-window::after { content: ""; position: absolute; inset: auto 0 0; height: 44px; background: linear-gradient(transparent,#0d1415); pointer-events: none; }
.hero-code { margin: 0; padding: 20px 22px 28px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.85 var(--mono); color: #a7b9b1; }
.hero-code .token-keyword { color: #c2bbdb; }
.hero-code .token-string { color: #b7d2a5; }
.hero-code .token-comment { color: #81978a; }
.hero-code .token-number { color: #dbc292; }
.hero-preview-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; min-height: 54px; padding: 16px 22px; border-top: 1px solid #2b3935; background: #111c18; font: 12px/1.5 var(--sans); }
.hero-preview-footer svg { width: 16px; height: 16px; color: var(--accent); }
.hero-preview-footer code { font: 12px/1.5 var(--mono); color: #d0e9dc; }
.hero-result, .hero-protection { display: inline-flex; align-items: center; gap: 7px; }
.hero-result [data-icon], .hero-protection [data-icon] { display: inline-flex; }
.hero-protection { margin-left: auto; color: #a8c5b9; font-size: 12px; }
.hero-protection.is-unprotected { color: var(--muted); }
.tool, .product-section, .features-section, .faq-section, .page-footer { max-width: 1120px; margin-inline: auto; }
.tool { padding-top: 28px; border-top: 1px solid var(--line); background: transparent; }
.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.workspace-toolbar h2 { margin: 0; font-size: 22px; font-weight: 550; letter-spacing: -.4px; }
.endpoint-control { position: relative; flex-shrink: 0; min-width: 0; }
.endpoint-trigger { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #526a6f; border-radius: 6px; background: #0d171b; font-size: 14px; }
.endpoint-trigger:hover, .endpoint-trigger[aria-expanded=true] { border-color: var(--accent); }
.endpoint-trigger small, .endpoint-option small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.endpoint-arrow { margin-left: auto; }
.endpoint-arrow svg { width: 14px; height: 14px; }
.endpoint-trigger[aria-expanded=true] .endpoint-arrow { transform: rotate(180deg); }
.endpoint-menu { position: absolute; z-index: 10; left: 0; top: calc(100% + 8px); min-width: 100%; width: max-content; padding: 6px; border: 1px solid #526a6f; border-radius: 8px; background: #152128; box-shadow: 0 12px 32px #0006; }
.endpoint-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 4px; text-align: left; font-size: 14px; white-space: nowrap; }
.endpoint-option small { margin-left: auto; }
.endpoint-option>span:last-child svg { width: 16px; height: 16px; visibility: hidden; }
.endpoint-option[aria-checked=true] { background: var(--accent-tint); color: var(--accent); }
.endpoint-option[aria-checked=true]>span:last-child svg { visibility: visible; }
.endpoint-option:hover, .endpoint-option:focus-visible { background: #284139; }
.settings-trigger { display: grid; grid-template-columns: 20px minmax(0,1fr) 14px; align-items: center; gap: 10px; min-width: 0; max-width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #566e65; border-radius: 6px; background: #16211d; font-size: 15px; font-weight: 600; text-align: left; color: #e0eee7; }
.settings-trigger:hover, .settings-trigger[aria-expanded=true] { color: #eff8f3; background: #1c2b25; border-color: #8baea0; }
.settings-symbol { display: inline-flex; color: var(--accent); }
.settings-trigger-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }
.toolbar-count { color: #b5d6c9; font: 12px/1.4 var(--sans); }
.settings-trigger[data-active=true] .toolbar-count { color: var(--accent); }
.workspace-options { margin-top: 16px; }
.workspace-options-controls { display: flex; align-items: center; gap: 12px; }
.workspace-options-controls>.settings-trigger { flex: 1; }
.workspace-options>.settings-panel { margin: 8px 0 0; }
.settings-chevron svg { width: 14px; height: 14px; }
.settings-trigger[aria-expanded=true] .settings-chevron { transform: rotate(180deg); }
.button { display: inline-flex; gap: 12px; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; font-weight: 600; }
.button-primary { background: var(--accent); color: #0b201b; border-color: #9addcb; }
.button-primary:hover:not(:disabled) { background: var(--accent-hover); }
.workspace-toolbar .button { flex-shrink: 0; margin-left: auto; min-height: 46px; }
.text-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--muted); font-size: 14px; }
.text-button:hover:not(:disabled) { color: var(--accent); }
.text-button svg { width: 16px; height: 16px; }
.workspace-editor { min-width: 0; max-width: 100%; border: 1px solid #384548; border-radius: 8px; overflow: hidden; background: var(--surface); }
.editor-tabs { display: flex; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #121b1e; }
.editor-tab { position: relative; display: flex; gap: 9px; align-items: center; justify-content: center; min-height: 56px; padding: 12px 18px; font-size: 16px; font-weight: 550; color: var(--muted); }
.editor-tab:hover { color: var(--ink); background: #17292c; }
.editor-tab[aria-selected=true] { color: var(--accent); }
.editor-tab[aria-selected=true]::after { content: ""; position: absolute; height: 3px; inset: auto 12px 0; border-radius: 3px 3px 0 0; background: var(--accent); }
.editor-tab:focus-visible { outline-offset: -4px; }
.editor-tab.is-processing>span:first-child { color: var(--accent); }
.source-panel, .output-panel { min-width: 0; max-width: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); }
.editor-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; min-height: 56px; padding: 8px 20px; background: #151f22; border-bottom: 1px solid var(--line); }
.editor-name { display: flex; align-items: baseline; gap: 12px; min-width: 0; max-width: 100%; }
.editor-name h3 { margin: 0; font-size: 14px; font-weight: 500; flex-shrink: 0; color: #d9e5e7; }
.file-name { color: var(--muted); font: 12px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.editor-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.editor-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 4px 0; font-size: 13px; color: var(--muted); }
.editor-actions button:hover:not(:disabled) { color: var(--accent); }
.editor-actions svg { width: 15px; height: 15px; }
.code-editor { position: relative; display: flex; height: 320px; font: 14px/26px var(--mono); background: var(--surface); overflow: hidden; }
.gutter-clip { position: relative; flex-shrink: 0; width: 48px; overflow: hidden; background: var(--surface); color: var(--muted); user-select: none; }
#line-numbers { margin: 0; padding: 20px 12px 20px 0; font: inherit; text-align: right; }
#line-numbers>span { display: block; }
.code-surface { flex: 1; min-width: 0; overflow: hidden; position: relative; }
#source-input, #source-highlight { position: absolute; inset: 0; min-width: 0; max-width: 100%; margin: 0; padding: 20px 20px 20px 8px; font: inherit; line-height: inherit; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; tab-size: 2; letter-spacing: 0; }
#source-highlight { pointer-events: none; overflow: visible; bottom: auto; }
#source-highlight code { display: block; font: inherit; }
.source-line { display: block; min-height: 26px; }
#source-input { width: 100%; height: 100%; border: 0; border-radius: 0; resize: none; background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: var(--ink); overflow-x: hidden; overflow-y: auto; }
#source-input:focus-visible { outline-offset: -3px; }
#source-input::selection { background: #8bd6c030; }
.token-keyword { color: #a4b5e9; }
.token-string { color: #b6d29b; }
.token-number { color: #e7b995; }
.token-comment { color: #94a8a5; }
.drop-overlay { display: none; position: absolute; inset: 0; z-index: 2; align-items: center; justify-content: center; gap: 12px; background: var(--accent-tint); color: var(--accent); border: 2px dashed var(--accent); font: 16px var(--sans); pointer-events: none; }
.dragging .drop-overlay { display: flex; }
.editor-status, .output-stats { display: flex; align-items: center; min-height: 48px; padding: 4px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.editor-status { justify-content: space-between; gap: 12px; }
#source-stats { font: 12px var(--mono); }
.editor-status .text-button { font-size: 12px; }
.output-body { position: relative; flex: 1; min-height: 320px; background: #101b20; overflow: hidden; }
.output-placeholder { padding: 20px 24px; }
.output-placeholder p { margin: 0 0 8px; font: 14px/26px var(--mono); color: var(--muted); }
.output-placeholder small { display: block; font-size: 13px; color: var(--muted); }
#output-preview { position: absolute; inset: 0; min-width: 0; max-width: 100%; padding: 20px 24px; margin: 0; overflow-x: hidden; overflow-y: auto; font: 14px/26px var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
.output-ready { color: var(--accent); font-size: 12px; }
.output-stats { gap: 24px; flex-wrap: wrap; }
.output-stats>div { display: flex; align-items: baseline; gap: 12px; }
.output-stats strong { font: 12px var(--mono); color: var(--ink); }
.source-limit-error, .request-status { background: #3a2124; color: #ffd5ce; font-size: 16px; border: 1px solid #bc706d; border-left: 4px solid #f49c94; border-radius: var(--radius); padding: 16px 20px; }
.source-limit-error { margin: 0 0 16px; }
.request-status { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; scroll-margin-block: 24px; }
.request-status-icon { align-self: flex-start; padding-top: 2px; }
.request-status-icon svg { width: 24px; height: 24px; }
.request-status-copy { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.request-status h3 { margin: 0 0 4px; font-size: 18px; font-weight: 650; color: #fff0ec; }
.request-status p { margin: 0; }
.request-status .button { flex-shrink: 0; color: #fff0ec; background: #613738; border-color: #d69790; }
.request-status .button:hover:not(:disabled) { background: #794545; }
.request-status.is-cancelled { color: var(--ink); background: #17272d; border-color: #71868c; }
.request-status.is-cancelled h3 { color: var(--ink); }
.request-status.is-cancelled .button { background: #213b3c; border-color: #71868c; }
.settings-panel { margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.panel-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; }
.panel-heading h3 { font-size: 15px; font-weight: 600; margin: 0; }
.count-badge { color: var(--muted); font: 12px var(--mono); }
#settings-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.settings-group { padding: 16px 18px; min-width: 0; border-right: 1px solid var(--line); }
.settings-group:last-child { border-right: 0; }
.group-label { color: var(--muted); font-size: 12px; font-weight: 500; margin: 0 0 8px; }
.setting { padding: 8px 0; }
.setting-top { display: flex; align-items: flex-start; gap: 8px; }
.setting-copy { min-width: 0; flex: 1; }
.setting-title { display: flex; align-items: center; gap: 4px; }
.setting-title label { min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; cursor: pointer; }
.help-button { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 32px; padding: 0; color: var(--muted); }
.help-button svg { width: 16px; height: 16px; }
.help-button:hover { color: var(--accent); }
.setting-description { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.switch-wrap { position: relative; display: block; flex-shrink: 0; width: 40px; height: 40px; }
.switch-wrap input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.toggle-track { position: absolute; left: 0; top: 10px; width: 36px; height: 20px; background: var(--control-line); border-radius: 10px; pointer-events: none; }
.toggle-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #0b1517; transition: transform .12s; }
.switch-wrap input:checked+.toggle-track { background: var(--accent); }
.switch-wrap input:checked+.toggle-track::after { transform: translateX(16px); }
.switch-wrap input:focus-visible+.toggle-track { outline: 2px solid var(--accent); outline-offset: 4px; }
.setting-details { margin-top: 8px; padding: 12px; border-left: 2px solid #47615f; background: #0d171c; }
.setting-details fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.field-label { display: block; font-size: 13px; margin: 0 0 6px; }
.field-input { display: block; width: 100%; min-width: 0; padding: 8px 12px; min-height: 44px; border: 1px solid var(--control-line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: 14px/1.6 var(--mono); }
.field-input[aria-invalid=true] { border-color: var(--error); }
.source-type-setting { padding: 4px 0 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.source-type-control { position: relative; }
.source-type-input { appearance: none; -webkit-appearance: none; padding-right: 32px; font-family: inherit; cursor: pointer; }
.source-type-control > span { position: absolute; right: 10px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.source-type-control svg { display: block; width: 100%; height: 100%; }

.domains-input { resize: vertical; }
.field-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.field-hint, .field-error { margin: 6px 0 0; font-size: 12px; line-height: 1.5; }
.field-hint { color: var(--muted); }
.field-error { color: var(--error); }
.seed-random { margin-top: 4px; }
.settings-note { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
h2 { margin: 0 0 16px; font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -.4px; }
.product-section { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 64px; padding: 40px 0; max-width: 1120px; margin: auto; }
.product-section h2 { font-size: 18px; letter-spacing: 0; margin-bottom: 8px; }
.product-section p { margin: 0; color: var(--muted); max-width: 740px; font-size: 15px; line-height: 1.8; }
.free-plan { padding-left: 32px; border-left: 1px solid var(--line); }
.free-plan .text-button { text-decoration: underline; text-underline-offset: 4px; }
.features-section, .faq-section { padding: 32px 0; border-top: 1px solid var(--line); margin: auto; }
.features-intro { margin-bottom: 16px; }
.features-intro p { margin: 0; color: var(--muted); font-size: 15px; max-width: 74ch; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-symbol, .detail-symbol { display: inline-flex; flex-shrink: 0; color: var(--accent); }
.section-symbol svg { width: 24px; height: 24px; }
.detail-symbol svg { width: 18px; height: 18px; }
.features-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 32px; align-items: start; }
.detail-label { flex: 1; min-width: 0; }
.feature-explainer, .faq-list details { border-bottom: 1px solid var(--line); }
.feature-explainer summary, .faq-list summary { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 16px 0; list-style: none; font-size: 16px; }
summary::-webkit-details-marker { display: none; }
.summary-chevron { display: inline-flex; margin-left: auto; flex-shrink: 0; transition: transform .12s; }
.summary-chevron svg { width: 16px; height: 16px; }
.feature-explainer[open] .summary-chevron { transform: rotate(180deg); }
.feature-explainer>div, .faq-list p { color: var(--muted); font-size: 15px; padding: 0 0 16px 30px; overflow-wrap: anywhere; }
.feature-explainer p { margin: 0 0 8px; }
.faq-list summary::after { content: "+"; margin-left: auto; font: 18px var(--mono); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0; max-width: 85ch; }
.page-footer { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: 13px; }
.footer-line { display: flex; align-items: center; gap: 24px; }
.footer-brand { color: var(--ink); font-size: 20px; font-weight: 650; letter-spacing: -.5px; }
.footer-line p { margin: 0; }
.footer-line>a { margin-left: auto; padding: 8px 0; }
.footer-line>a:hover, .language-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 16px; }
.footer-contacts { display: flex; align-items: center; gap: 24px; }
.footer-contact { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.footer-contact [data-icon] { display: inline-flex; flex: 0 0 18px; }
.footer-contact svg { width: 18px; height: 18px; }
.footer-contact:hover, .footer-contact:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.email-contact { position: relative; }
.email-panel { position: absolute; z-index: 12; bottom: calc(100% + 8px); right: 0; width: 280px; max-width: calc(100vw - 32px); padding: 12px; border: 1px solid #526a6f; border-radius: 8px; background: #152128; box-shadow: 0 8px 24px #0005; }
#email-address { display: block; width: 100%; min-width: 0; padding: 10px 12px; min-height: 44px; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; background: #0d171b; font: 15px/1.6 var(--mono); }
.email-copy { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 8px; border: 1px solid #638e80; border-radius: 4px; color: #c6ecdf; background: #1c342e; font-size: 14px; }
.email-copy:hover { color: #e9fff5; background: #294b40; }
.inline-email { padding: 0; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.inline-email:hover { color: var(--accent-hover); }
@media (max-width: 700px) {
 .footer-contacts { position: relative; }
 .email-contact { position: static; }
 .email-panel { left: 0; right: auto; }
}

.language-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.language-links a { padding: 8px 0; }
.language-links [aria-current=page] { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: #0009; }
.help-dialog { position: relative; width: 100%; max-width: 560px; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; max-height: calc(100dvh - 48px); overflow: auto; }
.modal-close { position: absolute; top: 12px; right: 12px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; }
.help-icon { display: none; }
.help-dialog h2 { margin: 0 24px 20px 0; }
#help-body { color: var(--muted); font-size: 16px; }
#help-body p { margin: 0 0 16px; }
#help-done { margin-top: 8px; }
.language-suggestion { position: fixed; z-index: 30; bottom: 24px; right: 24px; width: min(440px,calc(100% - 48px)); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--control-line); border-radius: 6px; box-shadow: 0 12px 32px #0006; }
.language-suggestion>p { margin: 0; flex: 1; min-width: 220px; font-size: 15px; }
.language-suggestion .button { font-size: 13px; padding-inline: 12px; }
.toast { position: fixed; z-index: 60; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; background: var(--accent); color: #0b201b; font-size: 14px; border-radius: var(--radius); }
.toast.error { background: var(--error); color: #271209; }
.noscript { position: fixed; bottom: 0; width: 100%; padding: 12px 20px; color: var(--error); background: var(--error-bg); border-top: 1px solid var(--line); font-size: 14px; }
@media (min-width: 1101px) {
  .editor-heading { height: 56px; flex-wrap: nowrap; }
  .editor-name { flex: 1; }
  .file-name { max-width: 120px; }
  .editor-actions { flex-shrink: 0; }
}
@media (max-width: 1100px) {
  .header-inner, .page-shell { padding-inline: 32px; }
  .header-inner { gap: 24px; }
  .main-nav { margin-left: 0; gap: 20px; }
  .page-intro { gap: 40px; padding-block: 60px; }
  .workspace-toolbar { gap: 16px; }
  .editor-heading { min-height: 56px; }
  .settings-group { padding: 16px; }
}
@media (max-width: 1000px) {
  .features-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .workspace-toolbar { flex-wrap: wrap; }
  .workspace-toolbar .button { margin-left: auto; }
  #settings-list { grid-template-columns: 1fr 1fr; }
  .settings-group:nth-child(2) { border-right: 0; }
  .settings-group:last-child { grid-column: 1/-1; border-top: 1px solid var(--line); }
  .product-section { gap: 32px; }
  .output-stats { gap: 4px 16px; }
  .output-stats>div { gap: 8px; }
  .page-intro { grid-template-columns: minmax(0,1fr); gap: 32px; min-height: 0; padding-block: 56px; }
  .hero-description { max-width: 680px; }
  .hero-code-window { height: 200px; }
}
@media (max-width: 700px) {
  .header-inner, .page-shell { padding-inline: 20px; }
  .header-inner { height: 72px; }
  .brand-logo { width: 128px; }
  .header-actions { gap: 12px; }
  .page-intro { padding: 44px 0; gap: 32px; }
  .hero-eyebrow { margin-bottom: 12px; font-size: 12px; }
  h1 { font-size: clamp(38px,10vw,48px); letter-spacing: -.035em; line-height: 1.1; }
  .hero-description { margin-top: 18px; font-size: 15px; line-height: 1.75; }
  .hero-start { min-height: 44px; margin-top: 20px; padding: 10px 18px; }
  .hero-preview-heading { min-height: 52px; padding: 5px 10px; font-size: 11px; }
  .hero-tabs { gap: 8px; }
  .hero-tab { min-height: 40px; padding: 7px 10px; }
  .hero-code-window { height: 180px; }
  .hero-code { padding: 14px 14px 20px; font-size: 11px; }
  .hero-preview-footer { min-height: 64px; padding: 10px 14px; gap: 6px 10px; }
  .tool { padding-top: 24px; }
  .workspace-toolbar h2 { font-size: 19px; margin-bottom: 6px; }
  .workspace-toolbar { gap: 8px; }
  .workspace-options-controls { flex-wrap: wrap; }
  .endpoint-control { flex-basis: 100%; }
  .endpoint-trigger { justify-content: flex-start; }
  .endpoint-menu { width: 100%; }
  .settings-trigger { flex: 1; font-size: 14px; }
  .settings-chevron { margin-left: auto; }
  .workspace-toolbar .button { flex-basis: 100%; margin-left: 0; min-height: 48px; }
  .editor-tabs { padding-inline: 8px; gap: 4px; }
  .editor-tab { padding-inline: 14px; }
  .editor-heading { min-height: 56px; height: auto; padding: 8px 16px; }
  .editor-name { width: auto; }
  .editor-actions { margin-left: auto; gap: 16px; }
  .editor-actions button { min-height: 44px; }
  .source-panel .editor-name { flex-basis: 100%; }
  .source-panel .editor-actions { margin-left: 0; }
  .code-editor { height: 280px; }
  .output-body { min-height: 280px; }
  .request-status { gap: 10px; padding: 16px; flex-wrap: wrap; }
  .request-status .button { margin-left: 34px; }
  .editor-status, .output-stats { padding: 8px 16px; min-height: 52px; }
  .output-stats { gap: 8px 20px; }
  .file-name { max-width: 180px; }
  #settings-list { grid-template-columns: 1fr; }
  .settings-group { border-right: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .settings-group:last-child { border-top: 0; border-bottom: 0; }
  .panel-header { padding: 8px 14px; }
  .panel-heading h3 { font-size: 14px; }
  .setting { padding: 6px 0; }
  .setting-title label { font-size: 14px; }
  .setting-description { font-size: 12.5px; }
  .setting-details { padding: 10px; }
  /* Keep editable fields at 16px so focusing them does not zoom iOS Safari. */
  .field-input { font-size: 16px; line-height: 1.4; }
  .switch-wrap { width: 44px; height: 44px; }
  .help-button { width: 32px; height: 36px; }
  .settings-note { padding: 10px 14px; font-size: 12px; }
  .product-section { grid-template-columns: 1fr; padding: 28px 0; gap: 24px; }
  .free-plan { border-left: 0; padding-left: 0; }
  .features-section, .faq-section { padding: 28px 0; }
  .features-list { grid-template-columns: 1fr; }
  .features-intro p { max-width: none; }
  h2 { font-size: 22px; }
  .footer-line { gap: 8px 16px; flex-wrap: wrap; }
  .footer-line p { flex-basis: 100%; order: 1; }
  .footer-line>a { font-size: 12px; }
  .language-links { gap: 4px 20px; }
  .language-links a { padding-block: 12px; }
  .help-dialog { padding: 32px 24px; }
  .language-suggestion { bottom: 16px; right: 16px; width: calc(100% - 32px); }
}
@media (max-width: 380px) {
  .header-inner, .page-shell { padding-inline: 16px; }
  .header-inner { gap: 12px; }
  .brand-logo { width: 112px; }
  .header-actions { font-size: 13px; }
  h1 { font-size: 36px; }
  .editor-status { flex-wrap: wrap; }
  .editor-heading { gap: 0 12px; }
  .editor-name { gap: 8px; }
  .output-panel .editor-name { flex-basis: 100%; }
  .output-panel .editor-actions { margin-left: 0; }
  .field-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .button, .toggle-track { border: 1px solid ButtonText; }
  .switch-wrap input:checked+.toggle-track { background: Highlight; }
  #source-input { -webkit-text-fill-color: CanvasText; color: CanvasText; }
  #source-highlight { visibility: hidden; }
}

#verification-modal { align-items: flex-start; overflow-y: auto; overscroll-behavior: contain; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.verification-dialog { flex: 0 0 auto; width: 100%; max-width: 440px; min-width: 0; margin-block: auto; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.verification-dialog:focus { outline: none; }
#cancel-verification:focus { outline: 2px solid var(--accent); outline-offset: 4px; }
.verification-dialog h2 { font-size: 20px; margin: 0 0 10px; }
.verification-dialog p { color: var(--muted); margin: 0 0 16px; font-size: 14px; overflow-wrap: anywhere; }
.verification-message { margin-bottom: 16px; }
.verification-message p { min-width: 0; margin: 0; }
.verification-widget-shell { position: relative; margin-bottom: 16px; }
.verification-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: #101e22; border-radius: 5px; pointer-events: none; }
/* Use the widget's native dimensions. Never scale or squeeze its iframe. */
#turnstile-widget { position: relative; width: 100%; min-height: 65px; margin: 0 auto; }
#turnstile-widget[data-size="compact"] { width: 150px; min-height: 140px; }
#turnstile-widget iframe { display: block; }
#cancel-verification { min-height: 44px; padding: 8px 0; }
@media (max-width: 700px) {
  .verification-dialog { padding: 20px 16px; }
  .verification-dialog h2 { font-size: 19px; }
  .verification-dialog p { font-size: 13px; }
}

.processing-panel { padding: 48px 28px; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.processing-panel h3 { margin: 22px 0 10px; font-size: 20px; font-weight: 500; }
.processing-panel p { margin: 0; max-width: 340px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.processing-symbol { display: flex; gap: 7px; align-items: center; height: 32px; }
.processing-symbol span { width: 8px; height: 24px; background: var(--accent); border-radius: 3px; animation: processing-pulse 1.2s ease-in-out infinite; }
.processing-symbol span:nth-child(2) { animation-delay: .15s; }
.processing-symbol span:nth-child(3) { animation-delay: .3s; }
.verification-wave { gap: 5px; height: 24px; }
.verification-wave span { width: 6px; height: 18px; }
#cancel-processing { margin-top: 18px; padding: 10px 20px; }
@keyframes processing-pulse { 0%,100% { transform: scaleY(.5); opacity: .45; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .processing-symbol span { animation: none; } }
