:root { color-scheme: light; font-family: Arial, sans-serif; color: #292b36; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(135deg, #6418ba 0%, #ff6900 100%); padding: 36px 18px; }
.shell { min-height: calc(100vh - 72px); display: grid; place-items: center; }
.card { width: min(100%, 680px); background: #fff; border-radius: 18px; padding: 34px; box-shadow: 0 18px 42px rgba(0, 0, 0, .28); }
.logo { width: min(245px, 75%); max-height: 75px; object-fit: contain; margin-bottom: 14px; }
.eyebrow { margin: 0 0 6px; color: #7c25bd; font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
h1 { margin: 0 0 14px; font-size: clamp(1.65rem, 4vw, 2rem); line-height: 1.2; }
.lead { color: #535662; line-height: 1.5; margin: 0 0 22px; }
label { display: block; font-size: .92rem; font-weight: 700; margin: 16px 0 7px; }
input, select, textarea { width: 100%; border: 1px solid #c8c8ce; border-radius: 9px; padding: 12px; color: #292b36; font: inherit; }
input:focus, select:focus, textarea:focus { border-color: #ff6900; outline: 3px solid rgba(255, 105, 0, .16); }
textarea { resize: vertical; }
button, .button-link { width: 100%; display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 999px; background: #ff6900; color: #fff; cursor: pointer; font: inherit; font-weight: 700; padding: 13px 22px; text-decoration: none; margin-top: 21px; }
button:hover, .button-link:hover { background: #dc5700; }
button:disabled { opacity: .65; cursor: wait; }
.secondary { background: #f1edf5; color: #59228d; }
.secondary:hover { background: #e4d9ec; }
.topline { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.topline .secondary { width: auto; margin: 0; padding: 10px 17px; }
.limit { background: #fff6ec; border-left: 4px solid #ff6900; border-radius: 7px; padding: 12px 14px; font-weight: 700; margin: 20px 0 4px; }
.template-description { margin: 8px 0 0; color: #626572; font-size: .9rem; line-height: 1.4; }
.message { min-height: 1.4em; margin: 18px 0 0; color: #b3261e; font-weight: 700; }
.message.ok { color: #287a3c; }
.result { margin-top: 26px; border-top: 1px solid #e5e2e8; padding-top: 26px; }
.result img { display: block; width: 100%; max-height: 640px; object-fit: contain; border-radius: 10px; background: #f4f2f5; }
.actions { display: flex; gap: 10px; }
.actions > * { flex: 1; }
.actions .secondary { margin-top: 21px; }
.footer { color: #6f717c; font-size: .78rem; margin: 24px 0 0; text-align: center; }
@media (max-width: 530px) { .card { padding: 26px 20px; } .topline, .actions { display: block; } .topline .secondary { margin-top: 10px; } }
