:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #252a2f;
  background: #f5f6f7;
  font-synthesis: none;
  --blue: #3b66e9;
  --line: #dfe3e7;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #8cafff; outline-offset: 4px; }
.site-header { min-height: 100px; padding: 24px max(32px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: #fff; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 15px; min-width: 0; }
.brand h1 { margin: 0; font-size: 28px; line-height: 1.35; font-weight: 650; letter-spacing: 0; }
.brand-mark { width: 34px; height: 34px; display: block; position: relative; flex: 0 0 34px; }
.brand-mark i { width: 22px; height: 32px; position: absolute; top: 0; left: 0; background: #3b66e9; }
.brand-mark b { width: 23px; height: 23px; position: absolute; right: 0; bottom: 0; border-radius: 50%; background: #e45a42; }
.header-note { font-size: 12px; color: #707780; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #32836a; }
main { width: min(1240px, calc(100% - 64px)); margin: 38px auto 0; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.heading-group { display: flex; align-items: baseline; flex-wrap: wrap; gap: 22px; }
.eyebrow, .art-number { font-size: 12px; color: #77808a; font-variant-numeric: tabular-nums; }
h2 { font-size: 22px; font-weight: 600; margin: 0; }
.workspace { display: grid; grid-template-columns: 190px minmax(0, 1fr); column-gap: 48px; align-items: start; }
.controls { padding-top: 8px; display: flex; flex-direction: column; gap: 30px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .field-heading label { font-size: 13px; font-weight: 600; margin-bottom: 15px; padding: 0; }
.swatches { display: flex; gap: 12px; align-items: center; padding: 3px; }
.swatch { border: 0; width: 31px; height: 31px; border-radius: 50%; flex: 0 0 31px; position: relative; }
.swatch[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid currentColor; }
.swatch.blue { background: #3b66e9; color: #3b66e9; }
.swatch.green { background: #32836a; color: #32836a; }
.swatch.red { background: #e45a42; color: #e45a42; }
.swatch.mono { background: #30383c; color: #30383c; }
.field-value { display: block; font-size: 12px; color: #7b838a; margin-top: 14px; }
.segments { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d7dce1; padding: 3px; border-radius: 5px; background: #eceff2; }
.segments button { min-height: 35px; border: 0; background: transparent; border-radius: 3px; font-size: 13px; color: #717982; }
.segments button[aria-pressed="true"] { background: #fff; color: #252a2f; box-shadow: 0 1px 3px #252a2f12; }
.field-heading { display: flex; align-items: center; justify-content: space-between; }
.field-heading label { margin: 0; }
output { color: #747d86; font-size: 12px; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; margin: 18px 0 0; accent-color: var(--blue); cursor: pointer; }
.check-control { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #606a73; cursor: pointer; }
.check-control input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
.actions { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 5px; border: 1px solid transparent; padding: 10px 12px; font-size: 13px; line-height: 1.4; transition: background 120ms; }
.primary { background: #2f59d4; color: #fff; }
.primary:hover { background: #2549b1; }
.secondary { background: #fff; border-color: #d7dce1; color: #424c54; }
.secondary:hover { background: #eceff2; }
.button svg { flex: 0 0 18px; }
.artboard { min-width: 0; }
.canvas-wrap { background: #fff; border: 1px solid #e0e4e7; }
canvas { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; }
.art-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 13px; font-size: 11px; color: #858c94; font-variant-numeric: tabular-nums; }
.notice { min-height: 19px; font-size: 12px; color: #47735f; text-align: right; margin: 8px 0 18px; }
footer { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 22px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 11px; color: #92999f; }
@media (min-width: 1500px) { main { margin-top: 48px; } }
@media (max-width: 900px) {
  .site-header { padding-inline: 24px; min-height: 88px; }
  .brand h1 { font-size: 25px; }
  main, footer { width: calc(100% - 48px); }
  .workspace { grid-template-columns: 160px minmax(0, 1fr); gap: 26px; }
  .swatches { gap: 10px; }
  .swatch { width: 27px; height: 27px; flex-basis: 27px; }
}
@media (max-width: 650px) {
  .site-header { padding: 20px; min-height: 82px; gap: 12px; }
  .brand { gap: 11px; }
  .brand h1 { font-size: 23px; }
  .brand-mark { transform: scale(.85); transform-origin: left center; margin-right: -4px; }
  .header-note { display: none; }
  main, footer { width: calc(100% - 40px); }
  main { margin-top: 25px; }
  .workspace-heading { margin-bottom: 20px; }
  .heading-group { gap: 10px; flex-direction: column; }
  h2 { font-size: 21px; }
  .workspace { display: flex; flex-direction: column; gap: 26px; }
  .artboard { order: 0; width: 100%; }
  .controls { order: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 25px 26px; padding: 0; }
  .swatches { gap: 11px; }
  .swatch { width: 26px; height: 26px; flex-basis: 26px; }
  .field-value { margin-top: 12px; }
  .check-control { align-self: center; }
  .actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; padding-top: 20px; }
  .notice { margin-top: 14px; }
  footer { padding-top: 19px; padding-bottom: 24px; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 16px; }
  .brand h1 { font-size: 21px; }
  main, footer { width: calc(100% - 32px); }
  .controls { gap: 24px 18px; }
  .swatches { gap: 7px; }
  .swatch { width: 21px; height: 21px; flex-basis: 21px; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
