/* QR Code page (redesign 2026-10-20). Light theme only. Illustrations live in art/. Classes used by app.js: .status(.error/.success), .primary on the two mode buttons, .over on the drop zone. */
:root{font-family:"Segoe UI","Microsoft JhengHei",system-ui,sans-serif;color:#183047;background:#f3f8ff;font-synthesis:none;--brand:#2f63e8;--brand-dark:#244fc4;--accent:#ff9433;--line:#d9e4f4;--soft:#eef4ff;--mute:#5d7188}
*{box-sizing:border-box}
body{margin:0;background:#f3f8ff url(art/bg-light.webp) center top/1280px auto no-repeat}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{touch-action:manipulation}
a{color:#2f56c4}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.48}
[hidden]{display:none!important}
img{max-width:100%}
.site-head{background:#ffffffd9;border-bottom:1px solid var(--line);backdrop-filter:blur(6px)}
.top{max-width:1220px;margin:auto;padding:14px 24px;display:flex;justify-content:space-between;align-items:center;gap:15px}
.top a{text-decoration:none;font-size:.9rem;font-weight:700;display:inline-flex;align-items:center;min-height:44px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800}
.brand-icon{display:grid;place-items:center;background:#e4edff;border-radius:12px;width:40px;height:40px;font-size:1.3rem}
.wrap{max-width:1220px;margin:auto;padding:22px 24px 60px}
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,380px);gap:28px;align-items:center;margin:0 0 20px}
.eyebrow{color:#2f63e8;font-size:.84rem;font-weight:700;margin:0 0 8px}
h1{font-size:clamp(1.7rem,4vw,2.4rem);margin:0 0 10px;line-height:1.3}
h2{font-size:1.12rem;margin:0 0 14px}
.lead{color:var(--mute);line-height:1.8;margin:0 0 16px;max-width:640px}
.hero-art{width:100%;height:auto;justify-self:end}
.trust{display:flex;align-items:center;gap:12px;background:#ffffffc7;border:1px solid var(--line);border-radius:16px;padding:10px 16px 10px 10px;max-width:640px}
.trust-art{width:58px;height:auto;flex:none}
.trust ul{list-style:none;margin:0;padding:0;font-size:.86rem;line-height:1.75;color:#33485f}
.modes{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 18px}
.mode{display:flex;align-items:center;gap:14px;text-align:left;background:#fff;border:2px solid var(--line);border-radius:20px;padding:14px 18px;min-height:88px;color:#183047;box-shadow:0 4px 14px #1c365508;transition:border-color .15s,background .15s}
.mode img{width:68px;height:auto;flex:none}
.mode b{display:block;font-size:1.08rem}
.mode small{display:block;color:var(--mute);font-size:.82rem;line-height:1.6;margin-top:2px}
.mode:hover{border-color:#a9c0ee}
.mode.primary{border-color:var(--brand);background:#f0f5ff;box-shadow:0 0 0 3px #2f63e822}
.layout{display:grid;grid-template-columns:minmax(0,440px) minmax(0,1fr);gap:22px;align-items:start}
.panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;min-width:0;box-shadow:0 6px 22px #1c365510}
.result{scroll-margin-top:10px;position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto}
.step{margin:0 0 24px}
.step-title{display:flex;align-items:center;gap:10px;font-size:1.02rem;margin:0 0 12px}
.num{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:var(--accent);color:#fff;font-size:.84rem;font-weight:800}
.tiles{display:grid;gap:10px}
.tiles-4{grid-template-columns:1fr 1fr}
.tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-height:44px;padding:12px 8px;border:2px solid var(--line);border-radius:16px;background:#fff;color:#183047;text-align:center}
.tile img{height:58px;width:auto;max-width:100%;object-fit:contain}
.tile span,.tile b{font-weight:700;font-size:.9rem}
.tile small{font-size:.76rem;color:var(--mute);line-height:1.5}
.tile:hover{border-color:#a9c0ee}
.tile[aria-checked=true]{border-color:var(--brand);background:#f0f5ff;box-shadow:0 0 0 3px #2f63e822}
.tile[aria-checked=true]::after{content:"✓";position:absolute;top:7px;right:7px;width:22px;height:22px;border-radius:50%;background:var(--brand);color:#fff;font-size:.78rem;font-weight:800;line-height:22px;text-align:center}
.chips{display:flex;gap:8px}
.chip{flex:1;min-height:44px;border:2px solid var(--line);border-radius:12px;background:#fff;color:#183047;font-weight:700}
.chip:hover{border-color:#a9c0ee}
.chip[aria-checked=true]{border-color:var(--brand);background:#f0f5ff;color:var(--brand-dark);box-shadow:0 0 0 3px #2f63e822}
.field{display:block;margin:16px 0 6px;font-size:.87rem;font-weight:700}
.step>.field:first-of-type{margin-top:0}
.input,textarea,select{width:100%;border:1px solid #c5d3e8;border-radius:12px;padding:11px 12px;background:#fff;color:#183047;min-width:0}
textarea{resize:vertical;min-height:135px;line-height:1.6}
input[type=checkbox]{accent-color:var(--brand)}
.btn{display:inline-flex;justify-content:center;align-items:center;gap:7px;background:#fff;border:1px solid #c5d3e8;border-radius:12px;padding:10px 14px;min-height:44px;color:#243d56;text-decoration:none;font-weight:700;font-size:.9rem}
.btn:hover:not(:disabled){background:#f0f5fd}
.btn.primary{background:var(--brand);color:#fff;border-color:var(--brand)}
.btn.primary:hover:not(:disabled){background:var(--brand-dark)}
.btn.block{display:flex;width:100%;margin-top:12px}
.btn.big{min-height:52px;font-size:1rem}
.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.small{font-size:.8rem;color:#5d7188;line-height:1.7;overflow-wrap:anywhere}
.drop{border:2px dashed #9fb8e0;background:linear-gradient(#fbfdff,#f1f6ff);border-radius:20px;padding:20px 16px;text-align:center;margin:0 0 12px}
.drop.over{background:#e8f0ff;border-color:var(--brand)}
.drop-art{display:block;width:min(100%,230px);height:auto;margin:0 auto 6px}
.drop p{line-height:1.7;margin:6px 0 12px;color:#33485f}
.drop .btn{margin:0 auto}
.drop input[type=file]{max-width:100%;font-size:.85rem}
.status{padding:12px 16px;border-radius:14px;background:#eaf2fc;border:1px solid #c8dcf5;color:#244d7b;line-height:1.7;margin:0 0 16px;font-size:.88rem;overflow-wrap:anywhere}
.status.error{background:#fff0ee;border-color:#f1c3ba;color:#94362b}
.status.success{background:#eaf7ee;border-color:#bddcc7;color:#25663a}
.section-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.section-head h2{margin:0}
.meta{background:var(--soft);border-radius:999px;padding:4px 12px;font-size:.8rem;color:#33507a;font-weight:600}
#createOutput{position:relative}
.empty{display:grid;justify-items:center;text-align:center;color:var(--mute);padding:22px 16px;background:linear-gradient(#f9fbff,#f2f7ff);border:2px dashed #c6d7f0;border-radius:20px;line-height:1.8}
.empty-art{width:min(100%,250px);height:auto}
.empty p{margin:6px 0 0}
.preview-frame{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;text-align:center;overflow:hidden;box-shadow:inset 0 0 0 6px #f3f7fd}
.preview-frame canvas{max-width:100%;height:auto;display:block;margin:auto;box-shadow:0 3px 15px #1a365523}
#qrCanvas{width:min(100%,380px);image-rendering:pixelated}
#scanCanvas{max-height:450px;width:auto;max-width:100%}
.done-art{display:none;position:absolute;right:-8px;top:-18px;width:88px;height:auto;pointer-events:none}
#qrPreview:not([hidden])+.done-art{display:block}
.result-actions{margin-top:16px}
#createOutput .result-actions{display:grid;grid-template-columns:1fr 1fr}
.note{background:#fff8e7;border-radius:12px;color:#765621;padding:12px;font-size:.82rem;line-height:1.7;margin:14px 0 0}
#result{min-height:190px}
#wifiFields>.small{display:block;margin-top:12px}
.steps3{margin:26px 0 0}
.steps3-title{font-size:1.15rem;margin:0 0 14px;text-align:center}
.steps3 ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.steps3 li{display:grid;justify-items:center;text-align:center;gap:4px;background:#ffffffd9;border:1px solid var(--line);border-radius:20px;padding:16px 14px;font-size:.88rem;color:#33485f;line-height:1.6}
.steps3 li img{height:70px;width:auto}
.steps3 li b{font-size:1rem;color:#183047}
footer{font-size:.8rem;color:#5d7188;text-align:center;margin-top:32px;line-height:1.8}
footer a{display:inline-flex;align-items:center;min-height:44px;padding:0 8px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
:focus-visible{outline:3px solid #5278e5;outline-offset:3px}
.panel.guide{margin-top:26px}
@media(max-width:850px){.layout{grid-template-columns:1fr}.result{position:static;max-height:none;overflow-y:visible}.wrap{padding:16px 16px 40px}.top{padding:10px 16px}.hero{grid-template-columns:1fr}.hero-art{display:none}.panel{padding:18px}.steps3 ol{grid-template-columns:1fr}.steps3 li{grid-template-columns:70px 1fr;justify-items:start;text-align:left;column-gap:14px;row-gap:0}.steps3 li img{grid-row:1/3;height:62px}.done-art{width:70px;right:-4px;top:-14px}}
@media(max-width:520px){.modes{gap:10px}.mode{flex-direction:column;align-items:flex-start;gap:8px;padding:12px;min-height:0}.mode img{width:54px}.mode small{font-size:.76rem}.trust{padding:8px 12px 8px 8px}.trust-art{width:46px}.tile img{height:50px}}
@media(max-width:380px){.wrap{padding:12px 10px 32px}.top{padding:8px 10px}.brand{font-size:.9rem}.panel{padding:14px}.btn{padding:10px 11px;font-size:.85rem}.tiles{gap:8px}.tile{padding:10px 6px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.drop input[type=file]::file-selector-button{min-height:44px;padding:10px 12px;border:1px solid #b6c7df;border-radius:9px;background:#fff;color:#254773;font-weight:700;cursor:pointer;margin:4px 8px 4px 0}
/* licenses.html shares this file: a plain white card */
main.wrap.panel{max-width:760px;margin:24px auto;padding:24px}
