:root {
  color-scheme: light;
  font: 16px/1.5 system-ui, "Microsoft YaHei", sans-serif;
  color: #1c2822;
  background: #f6f8f5;
}

* { box-sizing: border-box; }
body { margin: 0; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px max(20px, calc((100% - 1100px) / 2)); background: #fff; border-bottom: 1px solid #dde4dc; }
.site-header > span { color: #53645a; font-size: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 750; color: inherit; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; color: white; background: #194c3b; border-radius: 6px; font: 750 18px/1 system-ui, sans-serif; }
main { max-width: 1140px; margin-inline: auto; padding: 36px 20px 48px; }
h1 { margin: 0 0 22px; font-size: 32px; }
h2 { margin: 0; font-size: 16px; }
.workspace { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: 24px; }
.editor { display: grid; gap: 10px; padding-block: 6px; }
.editor h2 { margin-bottom: 6px; }
.editor > label, legend { font-size: 14px; font-weight: 650; }
.editor > label:not(:first-of-type), fieldset { margin-top: 6px; }
input:not([type=radio]), textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid #c9d4cb; border-radius: 6px; background: #fff; color: inherit; font: inherit; }
textarea { resize: vertical; min-height: 90px; }
fieldset { margin-inline: 0; padding: 0; border: 0; }
legend { padding: 0; }
.swatches { display: flex; gap: 8px; margin-top: 7px; }
.swatch { display: grid; position: relative; place-items: center; width: 42px; height: 42px; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch > span { width: 26px; height: 26px; border-radius: 50%; background: var(--swatch); }
.swatch input:checked + span { outline: 2px solid var(--swatch); outline-offset: 3px; }
.swatch input:focus-visible + span { box-shadow: 0 0 0 7px #bed8c8; }
.actions { display: flex; gap: 8px; margin-top: 12px; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid #c9d4cb; border-radius: 6px; background: #fff; color: inherit; cursor: pointer; font: 650 14px/1.3 system-ui, "Microsoft YaHei", sans-serif; }
button svg { width: 18px; height: 18px; }
.primary { flex: 1; color: #fff; background: #194c3b; border-color: #194c3b; }
.primary:hover { background: #133b2e; }
.icon { width: 44px; background: #fff; }
.icon:hover { background: #eaf0eb; }
:focus-visible { outline: 2px solid #176b58; outline-offset: 3px; }
.status { min-height: 21px; color: #375748; font-size: 13px; margin: 0; }
.preview { min-width: 0; border: 1px solid #d7e0d8; border-radius: 8px; overflow: hidden; background: white; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-bottom: 1px solid #d7e0d8; }
.preview-bar span { font: 12px/1.5 ui-monospace, monospace; color: #53645a; }
iframe { display: block; width: 100%; height: 485px; border: 0; background: #f3f7f4; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 700px) {
  main { padding-top: 24px; }
  h1 { font-size: 25px; margin-bottom: 16px; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  iframe { height: 390px; }
}
