* { box-sizing: border-box; }
:root { font: 16px/1.5 "Segoe UI", Arial, sans-serif; color: #414141; background: white; }
body { margin: 0; }
.wrap { margin: auto; width: 100%; padding-inline: 12px; }
@media (min-width:576px) { .wrap { max-width: 540px; } }
@media (min-width:768px) { .wrap { max-width: 720px; } }
@media (min-width:992px) { .wrap { max-width: 960px; } }
@media (min-width:1200px) { .wrap { max-width: 1140px; } }
@media (min-width:1400px) { .wrap { max-width: 1320px; } }
header { background: linear-gradient(90deg,#444 0%,#444 33%,#1d1d1d 100%); color: white; border-top: 3px solid; border-image: linear-gradient(90deg,#e62827,#ecb22f,#72b94c,#349bae,#5432b1,#da1386,#e62427) 1; }
.masthead { padding-top: 22px; padding-bottom: 15px; }
.brand { display: inline-flex; align-items: center; color: white; font: 300 clamp(26px,5vw,43px)/1.22 "Segoe UI",Arial,sans-serif; text-decoration: none; letter-spacing: -.075em; }
.brand strong { font-weight: 600; }
.brand i { width: .94em; height: .75em; margin-right: .11em; border: 2px solid white; background: linear-gradient(90deg,white 32%,transparent 32%) top/100% 50% no-repeat, linear-gradient(90deg,white 58%,transparent 58%) bottom/100% 50% no-repeat; }
nav { display: flex; justify-content: flex-end; gap: 20px; margin-top: 12px; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.country-menu { position: relative; }
.country-menu > summary::before { content: "+"; color: #bbb; padding-right: 5px; }
.country-menu[open] > summary::before { content: "−"; }
.menu-items { z-index: 3; position: absolute; right: 0; min-width: 225px; width: max-content; max-width: min(340px,90vw); max-height: 55vh; overflow: auto; padding: 10px 0; color: #444; background: white; box-shadow: 0 4px 14px #0003; }
.menu-items a, .menu-items b { display: block; color: inherit; text-decoration: none; padding: 4px 14px; }
.menu-items b { font-size: .85rem; background: #f0f5f0; margin-top: 4px; }
.menu-items a:hover, .menu-items a[aria-current] { color: #388241; background: #f5f7f5; }
.mobile-menu { display: none; }
.heading { background: #f1f7f1; padding-block: 14px 22px; }
.heading small, .preview small { font-size: .875rem; }
.heading small a { color: inherit; text-decoration: none; }
h1 { margin: 6px 0 0; font-size: 1.6rem; font-weight: 400; line-height: 1.25; }
main { padding-block: 48px 80px; }
.intro { text-align: justify; margin-bottom: 68px; }
.intro p { margin: 0 0 24px; }
.intro a, #svg { color: #397f40; }
.workspace { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 24px; align-items: start; }
.preview { grid-column: span 7; text-align: center; min-width: 0; }
.editor { grid-column: 9 / span 4; min-width: 0; }
.stage img { display: block; max-width: 100%; height: auto; margin: auto; }
.preview small { display: block; margin-top: 5px; }
.actions { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.button { font: inherit; padding: 6px 13px; border: 1px solid #489e50; border-radius: 4px; background: #4ea455; color: white; cursor: pointer; }
.actions .button, #svg { font-size: .875rem; }
.button:hover { background: #408b47; }
.button:disabled, a:not([href]) { opacity: .5; }
h2 { text-align: center; text-transform: uppercase; margin: 0 0 32px; font-size: 1.15rem; line-height: 1.25; font-weight: 400; background: linear-gradient(90deg,transparent,#dfefdf,transparent); }
.field { display: block; border: 1px solid #ddd; border-radius: 6px; padding: 6px 12px; margin-bottom: 18px; }
.field span, legend, fieldset small { font-size: .88rem; }
.field span { display: block; color: #646464; }
input,select { width: 100%; min-width: 0; font: inherit; color: inherit; background: white; }
.field select,.field input { display: block; border: 0; height: 24px; padding: 0; }
fieldset { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
fieldset small { display: block; font-style: italic; }
.pair { display: flex; }
.paired { flex: 1; min-width: 0; }
.paired span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.paired input,.paired select { height: 38px; border: 1px solid #ddd; text-align: center; }
.paired:first-child :is(input,select) { border-radius: 5px 0 0 5px; }
.paired:last-child :is(input,select) { border-left: 0; border-radius: 0 5px 5px 0; }
.generate { display: block; margin: 22px auto 0; text-transform: uppercase; padding: 9px 18px; }
#status:empty { display: none; }
:focus-visible { outline: 2px solid #437fba; outline-offset: 2px; }
@media (max-width: 991px) {
    .masthead { padding-bottom: 26px; }
    .mobile-menu { display: block; text-align: right; margin-top: 24px; }
    .mobile-menu:not([open]) + nav { display: none; }
    nav { flex-direction: column; gap: 0; }
    .country-menu > summary { padding: 6px 0; }
    .menu-items { position: static; width: 100%; max-width: none; }
    .workspace { grid-template-columns: minmax(0,1fr); gap: 46px; }
    .editor,.preview { grid-column: auto; }
}
