:root { font-family: system-ui, sans-serif; color: #153c49; background: #eef4f7; font-size: 16px; line-height: 1.7; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 960px; margin: auto; padding: 30px 24px; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.brand { font-size: 26px; }
.tag { padding: 6px 14px; background: white; border: 1px solid #d5e3e9; border-radius: 24px; }
h1 { font-size: clamp(24px, 4vw, 36px); line-height: 1.5; margin: 0 0 18px; }
h2 { font-size: 20px; margin: 0 0 12px; }
p { margin: 12px 0; overflow-wrap: anywhere; }
.panel, #preview-content > section { background: white; border: 1px solid #d9e5ea; border-radius: 18px; padding: 24px; margin-bottom: 20px; }
#preview-content > section:has(h1) { background: #0b5770; color: white; }
label { display: block; margin-block: 16px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-block: 16px; }
.controls > * { min-width: 0; max-width: 100%; }
select, button { font: inherit; min-height: 46px; }
select { background: white; color: #153c49; padding: 8px; }
button { color: white; background: #0b5770; border: 0; border-radius: 10px; padding: 12px 20px; font-weight: 700; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 3px solid #d49a28; outline-offset: 4px; }
footer { border-top: 1px solid #d2e0e5; margin-top: 30px; padding-top: 20px; font-size: 12px; }
@media (max-width: 650px) {
  main { padding: 20px 16px; }
  .panel, #preview-content > section { padding: 20px 16px; }
  .controls { flex-direction: column; align-items: stretch; }
  .controls > select, .controls > button { width: 100%; }
}
