/* QRForge: warm graphite + burnt orange. No frameworks or external fonts. */
:root {
  color-scheme: dark;
  --bg: #101114;
  --surface: #1a1b1e;
  --surface-2: #141518;
  --line: #353539;
  --text: #f2f0ea;
  --muted: #a4a19b;
  --accent: #f0a15f;
  --accent-hover: #ffb778;
  --accent-soft: #39291f;
  --danger: #ff8e80;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
.app-shell { max-width: 1190px; min-height: 100vh; margin: auto; padding: 0 44px; display: flex; flex-direction: column; }
.topbar { min-height: 82px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 11px; align-items: center; font-size: 21px; font-weight: 750; letter-spacing: -.8px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; background: var(--accent); color: #211710; border-radius: 7px; padding: 7px; }
.brand-mark svg { width: 100%; }
.hero { padding: 72px 0 46px; max-width: 780px; }
.eyebrow { font-size: 11px; letter-spacing: 1.8px; font-weight: 750; color: var(--accent); }
.hero-separator { color: #70645b; padding: 0 8px; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.06; font-weight: 740; letter-spacing: -3px; margin: 22px 0 19px; }
.title-period { color: var(--accent); }
.hero > p { margin: 0; max-width: 570px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 28px; min-width: 0; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.step { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: 1px; }
.step span { font-weight: 600; color: #8f8a83; letter-spacing: 1px; }
.panel-symbol { color: #77746e; font-size: 10px; letter-spacing: 2px; }
.panel h2 { font-size: 24px; font-weight: 680; letter-spacing: -.9px; margin: 28px 0 7px; }
.panel-description { font-size: 13px; color: var(--muted); margin: 0 0 29px; line-height: 1.6; }
.field-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.field-heading label { font-size: 13px; font-weight: 650; }
.field-heading > span { font-size: 11px; color: #969189; }
textarea { width: 100%; min-height: 151px; max-height: 350px; resize: vertical; padding: 15px; color: var(--text); background: var(--surface-2); border: 1px solid #49474a; border-radius: 6px; font-size: 14px; line-height: 1.6; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea::placeholder { color: #787773; }
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #f0a15f1a; }
.size-heading { margin-top: 22px; }
.size-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.size-option { position: relative; cursor: pointer; }
.size-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size-option > span { display: block; padding: 13px 5px; text-align: center; border: 1px solid #49474a; background: var(--surface-2); border-radius: 6px; font-size: 13px; font-weight: 750; transition: .15s; }
.size-option small { color: var(--muted); font-weight: 450; font-size: 11px; }
.size-option input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.size-option input:checked + span small { color: #d5ae90; }
.size-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.primary-button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 15px 18px; margin-top: 27px; border: none; border-radius: 6px; background: var(--accent); color: #281b13; font-size: 14px; font-weight: 800; transition: background .15s; }
.primary-button:not(:disabled):hover { background: var(--accent-hover); }
.primary-button:disabled { opacity: .65; }
.primary-button > span:last-child { font-size: 19px; font-weight: 400; }
.error-message { font-size: 12px; line-height: 1.5; color: var(--danger); margin: 12px 0 -8px; }
.preview-panel { display: flex; flex-direction: column; }
.preview-panel .panel-description { margin-bottom: 23px; }
.preview-status { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.status-dot.muted { background: #86837f; }
.preview-stage { flex: 1; min-height: 300px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 24px; background: #131417; border: 1px dashed #444247; border-radius: 6px; }
.empty-preview { display: flex; flex-direction: column; align-items: center; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 65px; height: 65px; margin-bottom: 19px; padding: 15px; border: 1px solid #45413d; border-radius: 7px; background: #24221f; color: #a29688; }
.empty-icon svg { width: 100%; height: 100%; }
.empty-preview strong { font-size: 14px; font-weight: 650; margin-bottom: 8px; }
.empty-preview > span { font-size: 12px; color: var(--muted); }
.preview-stage img { display: block; max-width: 240px; max-height: 240px; width: 100%; height: auto; object-fit: contain; image-rendering: pixelated; background: white; padding: 4px; box-shadow: 0 6px 23px #0006; }
.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.output-format { display: flex; align-items: center; gap: 11px; min-width: 0; }
.file-symbol { display: grid; place-items: center; width: 35px; height: 35px; background: #322a24; color: var(--accent); border-radius: 5px; font-size: 20px; }
.output-format > div { display: flex; flex-direction: column; gap: 4px; }
.output-format strong { font-size: 12px; }
.output-format small { color: var(--muted); font-size: 11px; }
.download-button { background: transparent; border: 1px solid #8e684b; color: var(--accent); border-radius: 6px; padding: 11px 13px; white-space: nowrap; font-size: 12px; font-weight: 700; transition: background .15s; }
.download-button:not(:disabled):hover { background: var(--accent-soft); }
.download-button:disabled { opacity: .35; }
.download-button span { margin-left: 5px; font-size: 15px; }
.bottom-note { display: flex; align-items: center; gap: 13px; margin: 28px 0 70px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.bottom-note span { color: #a7a19a; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.bottom-note code { color: #d4c5b8; background: #242225; padding: 3px 5px; border-radius: 3px; }
footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: auto; padding: 25px 0 29px; color: #928e88; font-size: 11px; }
.footer-divider { padding: 0 7px; color: #65615c; }
@media(max-width:800px) { .app-shell { padding: 0 24px; } .hero { padding: 55px 0 37px; } .workspace { grid-template-columns: 1fr; max-width: 600px; } .preview-stage { min-height: 270px; } .bottom-note { margin-bottom: 45px; } }
@media(max-width:460px) { .app-shell { padding: 0 16px; } .topbar { min-height: 71px; } .brand { font-size: 19px; } .hero { padding: 44px 0 32px; } h1 { font-size: 42px; letter-spacing: -2px; } .hero > p { font-size: 14px; } .panel { padding: 21px 18px; } .panel h2 { margin-top: 23px; font-size: 22px; } .preview-footer { flex-wrap: wrap; } .download-button { margin-left: auto; } footer { flex-wrap: wrap; } }
