:root {
  --wf-bg: #F3F5F9;
  --wf-surface: #FFFFFF;
  --wf-border: #E2E7EF;
  --wf-ink: #0D131A;
  --wf-ink-secondary: #39424F;
  --wf-accent: #2859ED;
  --wf-accent-soft: #EAF0FE;
  --wf-on-accent: #FFFFFF;
  --wf-danger: #C0262D;
  --wf-info: #1C43C2;
  --wf-disabled-bg: #E5E9F0;
  --wf-radius-sm: 8px;
  --wf-radius-lg: 16px;
  font: 16px/1.55 Pretendard, 'Noto Sans KR', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--wf-ink);
  background: var(--wf-bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.frame { width: min(100% - 32px, 544px); margin-inline: auto; min-width: 0; }
header { background: var(--wf-surface); border-bottom: 1px solid var(--wf-border); }
header .frame { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
header span { color: var(--wf-ink-secondary); font-size: .875rem; }
main { padding-block: 20px 32px; }
h1, h2 { margin: 0; line-height: 1.3; word-break: keep-all; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
p { margin: 8px 0 16px; color: var(--wf-ink-secondary); }
aside { margin-top: 12px; padding: 12px; border-radius: var(--wf-radius-sm); background: var(--wf-accent-soft); }
ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
ol li { padding: 8px 0; border-bottom: 3px solid var(--wf-border); color: var(--wf-ink-secondary); text-align: center; font-size: .875rem; }
ol [aria-current='step'] { border-color: var(--wf-accent); color: var(--wf-ink); font-weight: 700; }
form { padding: 16px; border: 1px solid var(--wf-border); border-radius: var(--wf-radius-lg); background: var(--wf-surface); }
label, legend, .label { display: block; font-weight: 600; }
input, select, button, summary { font: inherit; }
input:not([type='checkbox']), select, button { width: 100%; min-height: 44px; border: 1px solid var(--wf-ink-secondary); border-radius: var(--wf-radius-sm); background: var(--wf-surface); color: var(--wf-ink); padding: 8px 12px; }
label + input, label + select { margin-top: 4px; }
.trade-row, .trade-row > div, fieldset { margin-top: 12px; }
fieldset { min-inline-size: 0; border: 0; padding: 0; margin-inline: 0; }
legend { padding: 0; }
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 8px; }
.choice { display: flex; align-items: center; min-height: 44px; gap: 8px; font-weight: 500; }
input[type='checkbox'] { margin: 0; width: 20px; height: 20px; flex: none; accent-color: var(--wf-ink); }
.sample { border: 1px solid var(--wf-border); border-radius: var(--wf-radius-sm); padding: 8px 12px; margin-top: 4px; }
summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
.actions { display: flex; gap: 8px; margin-top: 16px; }
button { font-weight: 700; cursor: pointer; }
button[type='submit'] { background: var(--wf-accent); border-color: var(--wf-accent); color: var(--wf-on-accent); }
.actions .secondary { flex: 0 0 76px; }
.error { margin: 0; color: var(--wf-danger); }
.error:not(:empty) { margin-top: 12px; }
[aria-invalid='true'] { outline: 2px solid var(--wf-danger); }
:is(button, input, select, summary, h2):focus-visible { outline: 3px solid var(--wf-info); outline-offset: 2px; }
:is(button, input, select):disabled { background: var(--wf-disabled-bg); border-color: var(--wf-disabled-bg); color: var(--wf-ink-secondary); cursor: not-allowed; }
header strong { display: flex; align-items: center; gap: 8px; font-style: italic; font-weight: 800; }
header svg { width: 28px; height: 28px; flex: none; }
header svg rect { fill: var(--wf-accent); }
header svg path { fill: var(--wf-on-accent); }
dl { margin: 16px 0; }
dt { font-weight: 700; }
dd { margin: 0 0 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; }
}
