.sample { margin: 1.5rem 0 2rem; padding: clamp(18px,4vw,30px); border: 1px solid #d7d9df; border-radius: 18px; background: #fff; color: #1d232c; }
.sample h2 { margin: 0 0 .45rem; line-height: 1.2; }
.sample p { margin: .55rem 0 1rem; }
.sample label, .sample legend { font-weight: 650; }
.sample .fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,185px),1fr)); gap: 13px; }
.sample input { display: block; width: 100%; margin-top: .25rem; border: 1px solid #6c7685; padding: 10px; border-radius: 6px; color: #111; background: white; font: inherit; }
.sample button { min-height: 44px; padding: 9px 15px; border: 1px solid #616d7a; border-radius: 8px; background: #fff; color: #172636; font: inherit; font-weight: 650; cursor: pointer; }
.sample button:disabled { opacity: .5; cursor: default; }
.sample :focus-visible { outline: 3px solid #1263bf; outline-offset: 3px; }
.sample form button { background: #19396d; color: white; margin: 12px 0; }
.sample .result { display: block; padding: 13px 16px; border-left: 4px solid var(--a,#2c5042); background: #f1f4f6; border-radius: 2px; margin: .7rem 0; }
.sample a.action { display: inline-block; margin: 2px 0; padding: 10px 16px; min-height: 44px; border-radius: 9px; color: #fff; background: #172636; text-decoration: none; font-weight: 650; }
.sample details { margin: .5rem 0; padding: 12px 14px; border: 1px solid #d7d9df; border-radius: 8px; box-shadow: none; }
.sample details p:last-child { margin-bottom: .15rem; }
.number-board { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; max-width: 238px; margin: .85rem 0; }
.number-board button { position: relative; aspect-ratio: 1; padding: 2px; border: 1px solid #929b98; background: #f3f5ef; color: #192c27; font-size: 1.35rem; }
.number-board button[data-step] { background: #245148; color: white; }
.number-board button[data-step]::after { content: attr(data-step); position: absolute; top: 1px; right: 5px; font: 600 11px/1.4 sans-serif; }
.number-board button.checkpoint { background: #6b461a; }
.puzzle-tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.sample { color-scheme: light; }
.sample h2, .sample p, .sample summary, .sample label, .sample output { color: #1d232c; }
.sample a:not(.action) { color: #164781; text-decoration: underline; }
.sample summary { font-weight: 650; cursor: pointer; }
.sample details { background: #fff; }
.number-board button { line-height: 1.2; }

.sample form[hidden] { display: none !important; }
