:root { color-scheme: dark; font: 100%/1.42 "Segoe UI", sans-serif; background: #10191f; color: #f2f5f8; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(94%, 860px); margin: 2rem auto; }
header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
h1 { margin: 0 0 1rem; }
h2 { margin: 0; font-size: 1.3rem; }
a { color: #f7d58b; }
form, section { background: #1b2a32; padding: 1.2rem; border: 1px solid #3b525c; border-radius: 12px; margin: 0 0 1rem; }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
form label { display: grid; gap: .35rem; }
select, button, input { background: #152028; border: 1px solid #607783; border-radius: 6px; color: inherit; font: inherit; }
select, button, input[readonly] { padding: .48rem .7rem; }
input[type="color"] { height: 2.4rem; width: 4rem; }
input[type="range"] { width: 100%; }
input[readonly] { min-width: 0; }
.range { display: flex; gap: .65rem; align-items: center; }
.submit { grid-column: 1 / -1; display: flex; gap: 1rem; align-items: center; }
.submit button { background: #ebc575; color: #152028; font-weight: 700; }
.source { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: .5rem; align-items: center; margin: .65rem 0 1rem; }
.source a { grid-column: 2 / -1; justify-self: start; }
#copyStatus:empty { display: none; }
@media (max-width: 620px) {
  form { grid-template-columns: 1fr; }
  .source { grid-template-columns: minmax(0, 1fr) auto; }
  .source label, .source a { grid-column: 1 / -1; }
}

form label.check { display: flex; align-items: center; gap: .6rem; }
