:root {
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: #25324b;
  background: #eef1f5;
  font-size: 14px;
  line-height: 1.5;
  color-scheme: light;
  --muted: #667085;
  --blue: #345ae0;
  --line: #dce2eb;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; text-underline-offset: 4px; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.site-header { max-width: 1160px; margin: auto; height: 100px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { font-size: 20px; font-weight: 650; text-decoration: none; letter-spacing: -.8px; }
.wordmark-separator { color: var(--blue); margin: 0 3px; font-weight: 500; }
.source-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 13px; }
.source-link:hover { text-decoration: underline; }
.source-link svg { width: 16px; height: 16px; }
main { max-width: 1160px; margin: 0 auto; padding: 28px 36px 40px; }
.intro { margin-bottom: 30px; }
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -1.2px; font-weight: 600; margin: 0 0 9px; }
.intro p { color: var(--muted); font-size: 15px; margin: 0; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 288px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px #25324b06; }
.viewer { min-width: 0; display: flex; flex-direction: column; }
.viewer-header { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; gap: 16px; font-size: 12px; border-bottom: 1px solid var(--line); }
.file-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.file-title svg { width: 16px; color: var(--muted); }
#filename { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#preview-type { white-space: nowrap; color: var(--muted); }
.stage { position: relative; flex: 1; min-height: 390px; display: flex; align-items: center; justify-content: center; padding: 30px; background: #f6f8fb; }
.artboard { width: min(100%, 350px); aspect-ratio: 1; background: #fff; box-shadow: 0 1px 5px #25324b0d; max-height: 350px; }
iframe { pointer-events: none; }
iframe, video { width: 100%; height: 100%; display: block; border: 0; object-fit: contain; }
.rendering { position: absolute; bottom: 16px; display: flex; gap: 9px; align-items: center; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; font-size: 12px; box-shadow: 0 2px 8px #25324b08; }
.spinner { width: 13px; height: 13px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.drop-overlay { position: absolute; inset: 10px; border: 2px dashed var(--blue); border-radius: 5px; background: #f2f5ffff; display: grid; place-items: center; font-weight: 600; pointer-events: none; }
.playback { display: flex; height: 54px; align-items: center; gap: 16px; padding: 0 22px 0 15px; border-top: 1px solid var(--line); }
.play-button { display: grid; place-items: center; border: 0; border-radius: 4px; width: 32px; height: 32px; background: transparent; color: #25324b; }
.play-button:hover:not(:disabled) { background: #eef1f5; }
#play-icon { fill: currentColor; stroke: none; }
#pause-icon { stroke-width: 3; }
#seek { min-width: 0; flex: 1; height: 4px; accent-color: var(--blue); cursor: pointer; }
#time { width: 75px; flex-shrink: 0; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.export-panel { border-left: 1px solid var(--line); padding: 26px 24px 20px; display: flex; flex-direction: column; }
h2 { font-size: 13px; line-height: 1.4; font-weight: 600; margin: 0 0 16px; }
.file-picker { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 9px; border: 1px solid #bac5d6; border-radius: 6px; font-size: 13px; cursor: pointer; overflow: hidden; }
.file-picker:hover { border-color: var(--blue); background: #f8faff; }
.file-picker:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.file-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-picker:has(input:disabled) { opacity: .5; }
.file-picker svg { width: 17px; height: 17px; }
.hint { color: var(--muted); font-size: 11px; margin: 8px 0 0; line-height: 1.6; }
.text-button { padding: 0; color: var(--blue); font-size: 12px; border: 0; background: transparent; }
.text-button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
#sample { margin-top: 13px; }
.settings-section { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.specs { margin: 0; font-size: 12px; }
.specs > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.specs dt, .secondary { color: var(--muted); }
.specs dd { display: flex; align-items: center; gap: 5px; margin: 0; }
.color-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; border: 1px solid #c2cad6; background: #fff; }
.output-hint { margin-top: 16px; }
.export-actions { margin-top: auto; padding-top: 26px; }
.primary-button { width: 100%; min-height: 42px; padding: 10px 14px; border: 0; border-radius: 6px; color: #fff; background: var(--blue); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; }
.primary-button:hover:not(:disabled) { background: #2448c7; }
#download { background: #25324b; }
#download:hover { background: #17243e; }
#cancel { margin-top: 12px; }
#status { color: var(--muted); font-size: 11px; margin: 10px 0 0; min-height: 32px; line-height: 1.55; overflow-wrap: anywhere; }
#status[data-error="true"] { color: #b42318; }
#star-prompt a { color: var(--blue); text-underline-offset: 3px; }
.key { display: block; margin-top: 18px; font-size: 12px; }
.key input { display: block; width: 100%; border: 1px solid #bac5d6; border-radius: 4px; padding: 8px; margin-top: 6px; }
.notes { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 11px; line-height: 1.75; padding-top: 17px; }
.notes p { margin: 0; }
.notes p:last-child { text-align: right; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .site-header { padding: 0 20px; height: 76px; }
  main { padding: 18px 20px 28px; }
  h1 { font-size: 29px; }
  .intro { margin-bottom: 24px; }
  .intro p { font-size: 13px; max-width: 260px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .viewer-header { padding: 0 15px; font-size: 11px; }
  .stage { min-height: 280px; padding: 24px; }
  .artboard { width: min(100%, 300px); max-height: 300px; }
  .export-panel { border-left: 0; border-top: 1px solid var(--line); padding: 22px; }
  .file-section { position: relative; }
  #sample { position: absolute; right: 0; top: 0; margin: 0; }
  .settings-section { margin-top: 20px; padding-top: 18px; }
  .export-actions { padding-top: 22px; }
  #status { min-height: 17px; }
  .notes { flex-direction: column; gap: 8px; }
  .notes p:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

.about { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.about h2 { font-size: 17px; margin-bottom: 16px; }
.about p { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 0 0 14px; max-width: 65ch; }
.about a { color: #25324b; }
.questions details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.questions summary { font-size: 13px; cursor: pointer; line-height: 1.6; }
.questions details p { margin: 10px 0 2px; font-size: 12px; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 36px; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; } }
