.qr-main { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.qr-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 48px 2px 36px; border-bottom: 1px solid #d9e3de; }
.qr-hero h1 { max-width: 680px; font-size: 42px; }
.qr-hero .intro-description { max-width: 560px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; color: var(--forest); font-size: 12px; font-weight: 650; white-space: nowrap; }
.back-link:hover { color: #397a68; }
.qr-workspace { display: grid; grid-template-columns: minmax(300px, .84fr) minmax(0, 1.16fr); gap: 18px; padding: 26px 0 72px; }
.qr-panel { min-width: 0; overflow: hidden; border: 1px solid #d9e3de; border-radius: 6px; background: var(--paper); }
.qr-panel-heading { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px; border-bottom: 1px solid var(--line-soft); }
.qr-panel-heading h2 { margin: 0; color: #1e3732; font-size: 18px; line-height: 1.3; font-weight: 650; }
.icon-button { width: 31px; height: 31px; display: grid; place-items: center; padding: 0; border: 1px solid #d6e2db; border-radius: 4px; background: #fbfdfb; color: #6d8279; cursor: pointer; }
.icon-button:hover { border-color: #a9c4b4; color: var(--forest); background: #f1f8f3; }
.icon-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.input-panel { padding-bottom: 18px; }
.field-label { display: block; margin: 20px 17px 7px; color: #71817a; font-size: 10px; }
.link-input { width: calc(100% - 34px); height: 42px; display: block; margin: 0 17px; padding: 0 12px; border: 1px solid #d8e2dd; border-radius: 4px; outline: 0; background: #fbfdfb; color: var(--ink); font: 12px "Cascadia Mono", Consolas, monospace; }
.link-input:focus { border-color: #8aafa0; box-shadow: 0 0 0 2px #e4efe9; }
.link-input::placeholder { color: #a0aca6; }
.field-hint { margin: 8px 17px 0; color: #94a19b; font-size: 10px; line-height: 1.55; }
.qr-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 17px 0; padding-top: 17px; border-top: 1px solid var(--line-soft); }
.settings-title { grid-column: 1 / -1; color: #476158; font-size: 11px; font-weight: 650; }
.setting-field { display: grid; gap: 6px; min-width: 0; }
.setting-field span { color: #71817a; font-size: 10px; }
.setting-field select { width: 100%; height: 35px; padding: 0 8px; border: 1px solid #d8e2dd; border-radius: 4px; outline: 0; background: #fbfdfb; color: #52675e; font-size: 11px; }
.setting-field select:focus { border-color: #8aafa0; box-shadow: 0 0 0 2px #e4efe9; }
.input-message { min-height: 25px; margin: 13px 17px 0; color: #a45139; font-size: 10px; line-height: 1.5; }
.input-message.success { color: #4b8a71; }
.button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid #d3e0d8; border-radius: 4px; background: #fbfdfb; color: #476158; font-size: 11px; font-weight: 650; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.button:hover:not(:disabled) { border-color: #9eb9ab; background: #f4f9f5; transform: translateY(-1px); }
.button.primary { border-color: var(--forest); background: var(--forest); color: #fff; }
.button.primary:hover:not(:disabled) { border-color: #2a6457; background: #2a6457; }
.button:disabled { cursor: not-allowed; opacity: .46; }
.button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.qr-button { width: calc(100% - 34px); margin: 0 17px; }
.preview-panel { display: flex; min-height: 540px; flex-direction: column; }
.preview-state { color: #7f8e88; font-size: 10px; }
.qr-stage { min-height: 390px; display: grid; place-items: center; padding: 26px 24px 20px; }
.qr-frame { width: min(100%, 380px); aspect-ratio: 1; display: grid; position: relative; place-items: center; padding: 19px; border: 1px solid #e0e9e3; background: #f7faf8; box-shadow: 0 10px 24px #254f3f0b; }
.qr-frame::before { width: 10px; height: 10px; position: absolute; top: -1px; left: -1px; border-top: 2px solid #6b9f89; border-left: 2px solid #6b9f89; content: ""; }
.qr-frame::after { width: 10px; height: 10px; position: absolute; right: -1px; bottom: -1px; border-right: 2px solid #6b9f89; border-bottom: 2px solid #6b9f89; content: ""; }
#qr-canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; background: #fff; }
#qr-canvas[hidden] { display: none; }
.qr-placeholder { display: flex; position: absolute; inset: 19px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #fff; color: #87958f; font-size: 11px; text-align: center; }
.qr-placeholder strong { color: #425650; font-size: 13px; }
.placeholder-mark { color: var(--orange); font-size: 25px; line-height: 1; }
.qr-url { max-width: calc(100% - 34px); display: block; overflow: hidden; margin: 0 17px 12px; padding: 9px 11px; border: 1px solid var(--line-soft); border-radius: 4px; background: #f8fbf9; color: #6c7c75; font: 10px/1.4 "Cascadia Mono", Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.qr-actions { display: flex; gap: 9px; margin-top: auto; padding: 14px 17px 17px; border-top: 1px solid var(--line-soft); }
.qr-actions .button { flex: 1; }
@media (max-width: 900px) { .qr-main { width: calc(100% - 44px); } .qr-workspace { grid-template-columns: minmax(0, 1fr); } .preview-panel { min-height: 480px; } }
@media (max-width: 600px) { .qr-main { width: calc(100% - 30px); } .qr-hero { align-items: flex-start; flex-direction: column; gap: 17px; padding: 29px 0 25px; } .qr-hero h1 { font-size: 34px; } .qr-hero .intro-description { margin-top: 10px; } .qr-workspace { gap: 12px; padding: 18px 0 45px; } .qr-settings { grid-template-columns: 1fr; } .settings-title { grid-column: auto; } .qr-stage { min-height: 300px; padding: 20px 18px 16px; } .qr-frame { padding: 13px; } .qr-placeholder { inset: 13px; } .qr-actions { flex-direction: column; padding: 12px 13px 13px; } .qr-actions .button { width: 100%; } }
