:root {
  color-scheme: light;
  --bg: #f1f2f4;
  --sidebar: #ebecef;
  --card: #ffffff;
  --ink: #303030;
  --heading: #1a1a1a;
  --muted: #616161;
  --line: #e3e3e3;
  --input-line: #8a8a8a;
  --accent: #1a1a1a;
  --accent-soft: #f4f4f5;
  --green: #047857;
  --green-soft: #cdfee1;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, input, textarea { border: 1px solid #d4d4d8; border-radius: 8px; background: var(--card); padding: 7px 12px; min-height: 36px; }
input, select, textarea { border-color: var(--input-line); }
button { cursor: pointer; font-weight: 600; transition: background .12s, border-color .12s; }
button:hover { background: #f7f7f8; border-color: #a1a1aa; }
button:disabled { cursor: wait; opacity: .6; }
button.primary { background: var(--accent); color: #ffffff; border-color: var(--accent); }
button.primary:hover { background: #303030; border-color: #303030; }
button.text-button { padding: 4px 8px; border-color: transparent; background: transparent; color: #005bd3; }
button.text-button:hover { background: #eff6ff; border-color: transparent; }
a { color: #005bd3; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid #005bd3; outline-offset: 2px; }
input, select, textarea { width: 100%; }
textarea { resize: vertical; }
label, legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; }
label:not(:first-child) { margin-top: 10px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.3px; margin-bottom: 10px; color: var(--heading); }
h2 { font-size: 17px; font-weight: 650; line-height: 1.35; margin-bottom: 0; color: var(--heading); }
h3 { font-size: 15px; font-weight: 650; line-height: 1.4; margin-bottom: 8px; color: var(--heading); }
.app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); max-width: 1700px; margin: auto; min-height: 100vh; }
.rail { padding: 22px 16px; border-right: 1px solid var(--line); background: var(--sidebar); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { text-decoration: none; color: var(--heading); display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.brand small { display: block; font-size: 10px; letter-spacing: .08em; margin-top: 1px; color: var(--muted); font-weight: 600; }
.brand-icon { background: var(--accent); color: #ffffff; border-radius: 9px; width: 34px; height: 34px; display: grid; place-items: center; font-size: 17px; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; margin-bottom: 6px; text-transform: uppercase; }
.rail > .eyebrow { margin-top: 28px; }
.nav-item { display: flex; gap: 10px; padding: 8px 10px; margin-bottom: 4px; text-decoration: none; color: var(--ink); border-radius: 8px; font-weight: 500; }
.nav-item:hover { background: #e3e5e9; }
.nav-item.active { background: #ffffff; color: var(--heading); font-weight: 650; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.rail-note { padding: 14px; border: 1px solid #d4d6db; background: #f6f6f7; border-radius: 10px; margin-top: auto; font-size: 12px; }
.rail-note strong { display: block; margin: 4px 0; color: var(--heading); }
.rail-note p { margin-bottom: 0; color: var(--muted); }
.rail-footer { font-size: 11px; color: var(--muted); letter-spacing: .04em; margin: 16px 0 0; }
main { padding: 0 24px 32px; min-width: 0; }
.topbar { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: var(--card); margin: 0 -24px; padding: 0 24px; font-size: 13px; }
.top-controls { display: flex; align-items: center; gap: 8px; }
.top-controls select { width: auto; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 4px; }
.intro { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 22px 0 14px; scroll-margin-top: 16px; }
.intro .lead { max-width: 680px; color: var(--muted); font-size: 14px; margin-bottom: 0; }
.native-chip { min-width: 130px; text-align: center; display: grid; justify-items: center; padding: 10px 14px; border-left: 1px solid var(--line); gap: 2px; font-size: 12px; color: var(--muted); }
.native-chip > span:first-child { font-size: 18px; }
.native-chip strong { font-size: 17px; color: var(--heading); }
.steps { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0 0 18px; margin: 0; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.steps li span { font-size: 11px; font-weight: 700; border: 1px solid var(--line); background: var(--card); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.builder-grid { display: grid; grid-template-columns: minmax(360px, .92fr) minmax(420px, 1.08fr); gap: 16px; align-items: start; }
.panel { background: var(--card); padding: 20px; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 16px; scroll-margin-top: 18px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel-heading .eyebrow { font-size: 11px; margin-bottom: 2px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; color: #0c5132; background: var(--green-soft); padding: 3px 9px; border-radius: 999px; flex-shrink: 0; }
.hint { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 8px 0 14px; }
.demo-note { padding-left: 10px; border-left: 3px solid #d4d4d8; }
.field-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.field-pair label { margin-top: 0; }
.section-label { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 6px; gap: 10px; }
.section-label h3 { margin: 0; }
.model-line { display: flex; gap: 8px; margin: 8px 0; }
.model-line input { min-width: 0; }
.remove { color: #8e1f0b; padding: 6px 10px; }
.row-card { padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; background: #fafafa; }
.row-card .model-line { margin: 0; }
.row-values { display: grid; gap: 8px; margin-top: 10px; }
.row-values label { font-size: 12px; color: var(--muted); margin: 0 0 2px; }
.manual-editor { margin: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-size: 14px; font-weight: 650; padding: 6px 0; }
fieldset { border: 0; padding: 0; margin: 16px 0 0; }
legend { font-size: 14px; }
.badge-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-checks label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; background: #fafafa; }
input[type=checkbox] { width: 16px; height: 16px; min-height: 0; accent-color: var(--accent); }
.preview-panel { position: sticky; top: 16px; }
.preview-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.preview-toolbar label { font-size: 12px; }
.preview-toolbar select { font-size: 13px; }
.segmented { display: flex; padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f4f4f5; }
.segmented button { font-size: 13px; border-color: transparent; padding: 5px 12px; background: transparent; min-height: 30px; }
.segmented [aria-pressed=true] { background: #ffffff; border-color: #d4d4d8; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.preview-stage { background: #e5e7eb; border: 1px solid var(--line); padding: 14px; border-radius: 10px; max-height: 760px; overflow: auto; }
.storefront { --preview-size: 15px; background: #ffffff; border: 1px solid #e4e4e7; border-radius: 10px; max-width: 100%; margin: auto; color: #18181b; overflow: hidden; font-size: var(--preview-size); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.storefront.mobile { max-width: 390px; }
.store-header { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .08em; padding: 10px 16px; border-bottom: 1px solid #e4e4e7; color: #52525b; }
.product-hero { padding: 18px 20px 8px; }
.product-art { background: #f4f4f5; border-radius: 8px; margin-bottom: 14px; padding: 12px; }
.product-art svg { display: block; width: 100%; max-height: 170px; }
.product-hero h3 { font-size: 19px; letter-spacing: -.02em; color: #18181b; }
.product-hero > p:last-child { font-size: 14px; color: #52525b; }
.preview-block { margin: 16px 20px; border: 1px solid #e4e4e7; border-radius: 10px; padding: 16px; overflow-wrap: anywhere; background: #ffffff; }
.preview-block h3 { font-size: 1.05em; }
.preview-block .sg-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: inherit; }
.preview-block .sg-table th, .preview-block .sg-table td { padding: 10px 8px; border-bottom: 1px solid #e4e4e7; text-align: start; vertical-align: top; }
.preview-block .sg-table th { font-weight: 600; color: #18181b; }
.preview-block .sg-mobile { display: none; }
.storefront.mobile .sg-table { display: none; }
.storefront.mobile .sg-mobile { display: block; }
.preview-block .sg-model { padding: 12px; border: 1px solid #e4e4e7; border-radius: 8px; margin-bottom: 10px; }
.preview-block .sg-model:last-child { margin-bottom: 0; }
.preview-block h4 { font-size: 1em; margin: 0; }
.preview-block dl { margin: 0; }
.preview-block dt { font-weight: 600; margin-top: 10px; }
.preview-block dd { margin: 0; color: #3f3f46; }
.preview-block .sg-file { padding: 3px 8px; display: inline-block; border: 1px solid #d4d4d8; background: #f4f4f5; border-radius: 6px; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.preview-block .sg-download p { margin-bottom: 6px; font-size: .92em; color: #52525b; }
.preview-block .sg-download a { display: inline-block; font-weight: 650; font-size: inherit; padding: 6px 0; color: #005bd3; }
.preview-block .sg-locale { font-size: 12px; display: block; color: #71717a; }
.preview-block .sg-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.preview-block .sg-badges svg { width: 92px; height: 40px; }
.preview-disclaimer { font-size: 12px; padding: 0 20px 10px; color: #71717a; }
.routing-note { display: flex; gap: 8px; padding: 10px 0 0; font-size: 13px; color: var(--green); font-weight: 600; }
.publish-grid, .pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.publish-grid p { font-size: 14px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.generated-links { display: grid; gap: 10px; margin: 12px 0; overflow-wrap: anywhere; }
#deep-link { margin-top: 12px; }
.price-card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.price-card.featured { border: 2px solid var(--accent); }
.price-card h3 { display: flex; gap: 8px; align-items: center; }
.price { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; margin: 8px 0 12px; color: var(--heading); }
.price span { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.price-card p:not(.price) { min-height: 44px; color: var(--muted); }
.pricing-grid + p { font-size: 13px; color: var(--muted); margin: 14px 0; }
.cancel-strip { padding: 14px 16px; border: 1px dashed #d4d4d8; background: #fafafa; border-radius: 10px; display: flex; gap: 16px; align-items: center; }
.cancel-strip p { font-size: 13px; margin: 4px 0 0; color: var(--muted); }
.cancel-strip button { flex-shrink: 0; color: #8e1f0b; }
.support { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.support > div > p:last-child { color: var(--muted); }
.support button { margin: 12px 0; }
output { display: block; overflow-wrap: anywhere; }
#ticket-history { font-size: 13px; padding-left: 18px; }
footer { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); padding: 8px 0 24px; font-size: 12px; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1a1a1a; color: #ffffff; border-radius: 10px; padding: 10px 18px; max-width: min(90vw, 680px); box-shadow: 0 6px 24px rgba(0,0,0,.18); z-index: 10; font-size: 13px; }
.sr-only, .sg-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; left: 20px; top: -100px; background: var(--card); padding: 10px; z-index: 11; }
.skip:focus { top: 15px; }
[hidden] { display: none !important; }
@media (max-width: 1180px) { .app-shell { grid-template-columns: 196px minmax(0, 1fr); } main { padding: 0 18px; } .topbar { margin: 0 -18px; padding: 0 18px; } .builder-grid { grid-template-columns: minmax(320px, 1fr) minmax(350px, 1fr); } .native-chip { display: none; } }
@media (max-width: 1000px) { .app-shell { grid-template-columns: 1fr; } .rail { display: none; } .builder-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { main { padding: 0 14px; } .topbar { margin: 0 -14px; padding: 0 14px; flex-wrap: wrap; } .publish-grid, .pricing-grid, .support { grid-template-columns: 1fr; } .preview-panel { position: static; } .cancel-strip { flex-direction: column; align-items: start; } .panel { padding: 16px; } footer { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
