:root{font-family:Inter,Segoe UI,-apple-system,BlinkMacSystemFont,system-ui,sans-serif;line-height:1.55;font-weight:400;color:#0f172a;background-color:#f8fafc;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(180deg,#f8fafc,#e2e8f0)}a{color:#2563eb;text-decoration:none}a:hover{text-decoration:underline}button{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;border-radius:.8rem;border:1px solid transparent;padding:.55rem 1.2rem;font-size:.95rem;font-weight:600;font-family:inherit;background-color:#2563eb;color:#fff;cursor:pointer;transition:background-color .16s ease,box-shadow .16s ease,transform .16s ease,border-color .16s ease}button:hover:not(:disabled){background-color:#1d4ed8;transform:translateY(-1px);box-shadow:0 8px 18px #2563eb40}button:active:not(:disabled){transform:translateY(0);box-shadow:0 4px 12px #2563eb2e}button:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}code{font-family:Fira Code,Consolas,SFMono-Regular,ui-monospace,monospace}.app-shell{max-width:1200px;margin:0 auto;padding:3.5rem 1.25rem 4rem;display:flex;flex-direction:column;gap:2.5rem}.app-header{display:flex;flex-direction:column;gap:.5rem;align-items:flex-start}.app-header h1{margin:0;font-size:clamp(2rem,1.6rem + 2vw,2.5rem);font-weight:700;color:#0f172a}.subtitle{margin:0;max-width:560px;color:#475569;font-size:1rem;line-height:1.55}.app-description{padding:1rem;border-radius:1rem;background:#f8fafc;border:1px solid rgba(15,23,42,.08)}.app-description p{margin:0;font-size:.9rem;color:#475569}@media (min-width: 900px){.app-header{flex-direction:row;justify-content:space-between;align-items:flex-end}}.workspace{display:flex;flex-direction:column;gap:1.5rem}.pwa-toast{display:flex;align-items:center;justify-content:space-between;gap:.85rem;padding:.85rem 1.1rem;border-radius:1.1rem;border:1px solid rgba(37,99,235,.25);background:#2563eb1f;color:#1e293b}.pwa-toast.is-update{background:linear-gradient(135deg,#1d4ed8,#2563eb);border-color:#ffffff59;color:#fff;box-shadow:0 16px 36px -24px #1d4ed8bf}.pwa-toast p{margin:0;flex:1;font-size:.92rem}.pwa-toast .button-row{flex-wrap:nowrap}.pwa-toast.is-update .secondary{background:#0f172a40;border-color:#ffffff4d;color:#fffffff2}.mode-switch{display:flex;gap:1rem;padding:.75rem;border-radius:1.25rem;border:1px solid rgba(15,23,42,.05);background:#ffffffb3;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);overflow-x:auto}.mode-switch::-webkit-scrollbar{display:none}.mode-button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;flex:1 1 0;min-width:160px;gap:.35rem;padding:.85rem 1rem;border-radius:1rem;border:1px solid rgba(37,99,235,.15);background:#2563eb14;color:#1e293b;box-shadow:none}.mode-button:hover:not(:disabled){background:#2563eb29;border-color:#2563eb66}.mode-button.is-active{background:#1d4ed8;color:#fff;border-color:transparent;box-shadow:0 16px 36px -22px #1d4ed8b3}.mode-title{font-size:1rem;font-weight:600}.mode-subtitle{font-size:.85rem;color:#475569}.mode-button.is-active .mode-subtitle{color:#ffffffd9}.panel{position:relative;display:flex;flex-direction:column;gap:1.25rem;padding:1.5rem;border-radius:1.25rem;border:1px solid rgba(15,23,42,.08);background:#fff;box-shadow:0 18px 45px -30px #0f172a73}.panel-header h2{margin:0 0 .35rem;font-size:1.4rem;color:#0f172a}.panel-header p{margin:0;color:#64748b;font-size:.95rem}.text-input{width:100%;min-height:140px;resize:vertical;padding:1rem;border-radius:1rem;border:1px solid rgba(15,23,42,.08);background:#f8fafc;font:inherit;color:inherit;line-height:1.5;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}.text-input:focus{outline:none;border-color:#2563eb99;box-shadow:0 0 0 3px #2563eb1f;background:#fff}.qr-preview{min-height:260px;display:flex;align-items:center;justify-content:center;padding:1.25rem;border-radius:1.1rem;background:linear-gradient(135deg,#eff6ff,#f1f5f9);border:1px dashed rgba(37,99,235,.25)}.qr-preview svg{width:100%;height:auto;max-width:240px}.placeholder{color:#64748b;font-size:.95rem;text-align:center;padding:1rem}.button-row{display:flex;flex-wrap:wrap;gap:.75rem}.button-row.inline{gap:.5rem}.secondary{background:#0f172a08;color:#0f172a;border:1px solid rgba(15,23,42,.12)}.secondary:hover:not(:disabled){background:#2563eb1f;border-color:#2563eb73;color:#1d4ed8;box-shadow:none}.drop-zone{display:block;border:1.5px dashed rgba(15,23,42,.16);border-radius:1.1rem;padding:1.5rem;text-align:center;background:#f8fafcd9;cursor:pointer;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}.drop-zone.is-dragging{border-color:#2563eba6;background:#2563eb14;box-shadow:0 16px 32px -20px #2563eb59}.drop-title{margin:0 0 .35rem;font-weight:600}.drop-subtitle{margin:0 0 1rem;color:#64748b;font-size:.9rem}.decode-output{display:flex;flex-direction:column;gap:.75rem;min-height:140px}.status{margin:0;font-size:.92rem;color:#64748b}.status.error{color:#b91c1c}.decoded-meta{display:flex;align-items:center;justify-content:space-between;gap:.75rem;font-size:.92rem;color:#475569}.decoded-text{width:100%;min-height:160px;padding:1rem;border-radius:1rem;border:1px solid rgba(15,23,42,.08);background:#0f172a;color:#f8fafc;font:inherit;font-size:.95rem;line-height:1.55;resize:vertical;white-space:pre-wrap}.decoded-text:focus{outline:none;border-color:#2563eb99;box-shadow:0 0 0 3px #2563eb1f}.decoded-preview{border:1px solid rgba(15,23,42,.08);border-radius:1rem;padding:.75rem;background:#f8fafc;display:flex;justify-content:center}.decoded-preview img{max-width:100%;height:auto;border-radius:.75rem}.camera-shell{position:relative;border-radius:1.1rem;overflow:hidden;border:1px solid rgba(15,23,42,.08);background:linear-gradient(145deg,#0f172a,#1e293b);min-height:220px;display:flex;align-items:stretch;justify-content:center}.camera-feed{width:100%;height:100%;object-fit:cover}.camera-feed.is-idle{filter:blur(1px) brightness(.7)}.camera-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#ffffffd9;font-size:1rem;pointer-events:none;background:linear-gradient(160deg,#0f172aa6,#0f172a66)}@media (max-width: 720px){.app-shell{padding-top:3rem}.app-header{gap:1.25rem}.header-meta{align-self:stretch}.mode-switch{gap:.75rem;padding:.6rem}.mode-button{min-width:140px}.qr-preview{min-height:200px}}
