:root { color-scheme: light; font-family: system-ui, -apple-system, sans-serif; background: #f4f2e9; color: #203531; line-height: 1.55; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 28px, 790px); margin: 27px auto 45px; }
header { padding: 18px 0 12px; border-top: 5px solid #235744; }
header p { margin: 4px 0; color: #455d53; }
.section-label { font-weight: 700; }
h1 { font-size: clamp(1.8rem, 5.7vw, 2.65rem); line-height: 1.1; margin: 6px 0 10px; }
h2 { font-size: 1.2rem; margin: 0 0 12px; }
.panel { background: #fffdf6; border: 1px solid #b9c8bc; padding: 17px; min-width: 0; }
.controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
label { display: block; font-weight: 650; }
label span { display: flex; min-height: 42px; gap: 8px; align-items: center; }
input, select, button { font: inherit; }
input[type="color"] { width: 49px; height: 40px; }
select { min-height: 42px; min-width: 0; width: 100%; padding: 6px; background: #fff; color: inherit; border: 1px solid #7d9588; border-radius: 5px; }
button { min-height: 42px; padding: 6px 12px; border: 1px solid #235744; border-radius: 5px; background: #235744; color: white; cursor: pointer; }
button:disabled { border-color: #b6c1b6; background: #e4ebe3; color: #5b655c; cursor: default; }
:focus-visible { outline: 3px solid #9d5c22; outline-offset: 3px; }
.columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 13px; }
.sample { border: 1px solid #7d9588; padding: 16px; min-height: 83px; }
code { overflow-wrap: anywhere; }
.result { min-height: 48px; }
@media (max-width: 540px) { .columns { grid-template-columns: minmax(0,1fr); } .controls { grid-template-columns: 1fr 1fr; } .controls button { grid-column: 1 / -1; } }
