* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; color: #bddfff; background: #18191b url("/img/bg.jpg") center 100px / cover no-repeat; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: #c60; text-decoration: none; }
a:hover { text-decoration: underline; }
.masthead { background: linear-gradient(110deg,#242424,#171717); box-shadow: 0 2px 10px #0009; }
.brand { display: block; max-width: 1440px; margin: auto; height: 100px; overflow: hidden; }
.brand img { display: block; width: 792px; height: 125px; max-width: 100%; object-fit: contain; object-position: left top; }
.workspace { max-width: 1440px; margin: auto; padding: 28px 42px 32px; font-size: 14px; display: grid; grid-template-columns: minmax(290px, 1fr) minmax(0, 2.2fr); gap: 22px; }
.settings { padding: 22px; border: 1px solid #77bde380; border-radius: 12px; background: #103f6260; }
h1,h2 { margin: 0; font-size: 21px; line-height: 1.3; }
.quantity { display: grid; grid-template-columns: minmax(65px, .7fr) minmax(0, 1.3fr); gap: 14px; margin-top: 20px; }
.quantity label { display: block; margin-bottom: 6px; }
.quantity input, select { width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid #bac8d5; border-radius: 7px; background: #fff; color: #202633; }
.start-option { display: flex; align-items: flex-start; gap: 8px; margin: 27px 0; cursor: pointer; }
.start-option input { width: 18px; height: 18px; flex-shrink: 0; margin: 3px 0 0; accent-color: #0765d9; }
.generate { width: 100%; padding: 10px; color: white; font-size: 20px; font-weight: bold; text-shadow: 0 1px 2px #945000; border: 2px solid #ffc362; border-radius: 10px; background: linear-gradient(#ffa918,#f07800); box-shadow: 0 2px 4px #0005; }
.generate:hover { background: linear-gradient(#ffb733,#df6800); }
.output { min-width: 0; padding: 21px 24px 11px; border: 1px solid #c6d7e6; border-radius: 12px; background: #fff; color: #172a46; box-shadow: 0 1px 4px #0003; }
.output-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
#copy { padding: 6px 12px; border: 1px solid #aab7c5; border-radius: 7px; background: linear-gradient(#fff,#e9edf1); color: #18222e; white-space: nowrap; }
#copy:hover { background: #e4edf5; }
textarea { display: block; width: 100%; min-height: 367px; resize: vertical; border: 0; padding: 3px; color: #394153; background: white; font-size: 15px; line-height: 1.65; }
#status { min-height: 18px; margin: 6px 0 0; font-size: 11px; color: #536173; }
:focus-visible { outline: 3px solid #ffb744; outline-offset: 4px; }
footer.container-fluid { background: linear-gradient(#242424,#111); box-shadow: 0 0 10px 1px #000; padding: 20px 30px 28px; color: #aaa; font-size: 13px; text-shadow: 1px 1px #000; line-height: 1.5; text-align: center; }
footer p { margin: 4px 0; }
footer a:hover { color: #e88725; }
@media (max-width: 900px) {
  .workspace { padding: 24px; gap: 20px; grid-template-columns: minmax(250px,1fr) minmax(0,1.7fr); }
  .settings { padding: 20px; }
  .quantity { grid-template-columns: 1fr; }
  .output { padding: 20px; }
}
@media (max-width: 640px) {
  .brand { height: auto; }
  .brand img { height: auto; }
  .workspace { grid-template-columns: 1fr; padding: 20px 16px 28px; }
  .quantity { grid-template-columns: .7fr 1.3fr; }
  .start-option { margin: 24px 0; }
  textarea { min-height: 340px; }
  footer.container-fluid { padding-inline: 16px; }
}
