:root{--bg:#fafafa;--surface:#fff;--surface-2:#f5f5f5;--text:#1a1a1a;--text-muted:#666;--text-subtle:#999;--border:#e5e5e5;--border-strong:#d0d0d0;--accent:#0a84ff;--accent-soft:#0a84ff1f;--danger:#e34c3c;--radio:10px;--radius:14px;--shadow:0 1px 2px #0000000a, 0 4px 16px #0000000a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}[data-theme=dark]{--bg:#0f0f10;--surface:#1a1a1c;--surface-2:#232326;--text:#e8e8e8;--text-muted:#a0a0a4;--text-subtle:#6f6f74;--border:#2a2a2c;--border-strong:#3a3a3d;--accent:#5ac8fa;--accent-soft:#5ac8fa29;--danger:#ff6b5a;--shadow:0 1px 2px #0000004d, 0 4px 16px #00000040;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%}html{background:var(--bg)}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.5;transition:background-color .2s,color .2s}#root{min-height:100%}button{cursor:pointer;font-family:inherit}input,select,textarea{font-family:inherit;font-size:inherit;color:inherit}a{color:var(--accent);text-decoration:none}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border-strong);border:2px solid var(--bg);border-radius:10px}.app{flex-direction:column;min-height:100vh;display:flex}.header{border-bottom:1px solid var(--border);background:var(--bg);z-index:10;justify-content:space-between;align-items:center;padding:20px 24px;display:flex;position:sticky;top:0}.header h1{letter-spacing:-.01em;align-items:center;gap:10px;font-size:18px;font-weight:600;display:flex}.header h1 .logo{border-radius:9px;flex-shrink:0;place-items:center;width:30px;height:30px;display:grid}.header h1 .logo img{width:30px;height:30px;display:block}.header .header-right{align-items:center;gap:8px;display:flex}.icon-btn{border:1px solid var(--border);background:var(--surface);width:38px;height:38px;color:var(--text);border-radius:10px;place-items:center;transition:all .15s;display:grid}.icon-btn:hover{border-color:var(--border-strong);transform:translateY(-1px)}.icon-btn svg{width:18px;height:18px}.main{flex:1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:28px;width:100%;max-width:920px;margin:0 auto;padding:32px 24px 64px;display:grid}.preview-panel{flex-direction:column;grid-column:2;gap:20px;width:100%;min-width:0;display:flex;position:sticky;top:86px}.col-left{flex-direction:column;grid-area:1/1;gap:20px;width:100%;min-width:0;display:flex}.col-right{flex-direction:column;gap:20px;width:100%;min-width:0;display:flex;position:sticky;top:86px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;padding:20px;transition:border-color .15s}.card .card-title{color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:16px;font-size:13px;font-weight:600}.type-selector{-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:6px;margin-bottom:6px;padding-bottom:4px;display:flex;overflow-x:auto}.type-selector::-webkit-scrollbar{display:none}.type-selector button{border:1px solid var(--border);background:var(--surface);color:var(--text-muted);white-space:nowrap;border-radius:100px;flex-shrink:0;padding:8px 14px;font-size:13px;font-weight:500;transition:all .15s}.type-selector button:hover{color:var(--text);border-color:var(--border-strong)}.type-selector button.active{background:var(--accent);color:var(--surface);border-color:var(--accent)}.form-fields{flex-direction:column;gap:14px;margin-top:8px;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field label{color:var(--text-muted);font-size:13px;font-weight:500}.field input,.field select,.field textarea{border-radius:var(--radio);border:1px solid var(--border);background:var(--surface-2);color:var(--text);outline:none;width:100%;padding:10px 12px;transition:border-color .15s,box-shadow .15s,background .15s}.field input::placeholder,.field textarea::placeholder{color:var(--text-subtle)}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);background:var(--surface)}.field textarea{resize:vertical;min-height:80px;font-family:inherit}.field-row{grid-template-columns:1fr 1fr;gap:12px;display:grid}select{appearance:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;padding-right:32px}.collapsible-trigger{width:100%;color:var(--text);text-transform:uppercase;letter-spacing:.04em;background:0 0;border:none;justify-content:space-between;align-items:center;padding:0;font-size:13px;font-weight:600;display:flex}.collapsible-trigger .trigger-left{align-items:center;gap:8px;display:flex}.collapsible-trigger svg{width:14px;height:14px;color:var(--text-muted);transition:transform .2s}.collapsible-trigger[aria-expanded=true] svg.chevron{transform:rotate(180deg)}.collapsible-content{max-height:0;transition:max-height .25s;overflow:hidden}.collapsible-content.open{max-height:500px;padding-top:16px}.style-controls{flex-direction:column;gap:14px;display:flex}.style-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.style-row label{color:var(--text-muted);font-size:13px}.color-picker{align-items:center;gap:8px;display:flex}.color-picker input[type=color]{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:8px;width:36px;height:36px;padding:0}.color-picker input[type=color]::-webkit-color-swatch-wrapper{padding:2px}.color-picker input[type=color]::-webkit-color-swatch{border:none;border-radius:5px}.color-picker .hex{color:var(--text-muted);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}input[type=range]{width:100%;accent-color:var(--accent)}.range-row{flex-direction:column;gap:4px;display:flex}.range-row .range-value{color:var(--text-muted);align-self:flex-end;font-size:12px}.reset-link{color:var(--text-muted);text-underline-offset:3px;background:0 0;border:none;align-self:flex-start;margin-top:6px;padding:0;font-size:12px;text-decoration:underline;transition:color .15s}.reset-link:hover{color:var(--accent)}.qr-preview{flex-direction:column;align-items:center;gap:16px;width:100%;display:flex}.qr-canvas-wrap{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);-webkit-overflow-scrolling:touch;place-items:center;width:100%;max-width:100%;min-height:220px;padding:16px;display:grid;position:relative;overflow:hidden}.qr-canvas-wrap canvas{border-radius:6px;max-width:100%;display:block;height:auto!important}.qr-empty{color:var(--text-subtle);text-align:center;place-items:center;gap:10px;padding:60px 20px;font-size:13px;display:grid}.qr-empty svg{opacity:.5;width:40px;height:40px}.qr-data-display{color:var(--text-subtle);text-align:center;word-break:break-all;max-width:280px;max-height:60px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;line-height:1.4;overflow:hidden}.export-bar{flex-wrap:wrap;gap:8px;display:flex}.export-btn{border-radius:var(--radio);border:1px solid var(--border);background:var(--surface);color:var(--text);justify-content:center;align-items:center;gap:6px;padding:9px 14px;font-size:13px;font-weight:500;transition:all .15s;display:inline-flex}.export-btn:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.export-btn:disabled{opacity:.5;cursor:not-allowed}.export-btn.primary{background:var(--accent);border-color:var(--accent);color:var(--surface)}.export-btn.primary:hover:not(:disabled){filter:brightness(.95);color:var(--surface)}.export-btn svg{width:15px;height:15px}.copy-feedback{color:var(--accent);padding:0 4px;font-size:12px;animation:1.6s forwards fadeInOut}@keyframes fadeInOut{0%{opacity:0}15%{opacity:1}85%{opacity:1}to{opacity:0}}.history-list{flex-direction:column;gap:8px;display:flex}.history-item{border-radius:var(--radio);border:1px solid var(--border);background:var(--surface-2);align-items:center;gap:12px;padding:10px 12px;transition:border-color .15s;display:flex}.history-item:hover{border-color:var(--border-strong)}.history-item .icon{background:var(--accent-soft);width:32px;height:32px;color:var(--accent);border-radius:8px;flex-shrink:0;place-items:center;display:grid}.history-item .icon svg{width:16px;height:16px}.history-item .info{flex:1;min-width:0}.history-item .label{white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:500;overflow:hidden}.history-item .meta{color:var(--text-subtle);text-transform:capitalize;font-size:11px}.history-item .actions{flex-shrink:0;gap:4px;display:flex}.history-item .actions button{background:var(--surface);width:28px;height:28px;color:var(--text-muted);border:none;border-radius:7px;place-items:center;transition:all .15s;display:grid}.history-item .actions button:hover{color:var(--accent);border-color:var(--accent)}.history-item .actions button.danger:hover{color:var(--danger)}.history-item .actions button svg{width:14px;height:14px}.history-empty{text-align:center;color:var(--text-subtle);padding:20px 0;font-size:13px}.history-clear{color:var(--text-muted);text-underline-offset:3px;background:0 0;border:none;align-self:flex-start;margin-top:10px;padding:0;font-size:12px;text-decoration:underline}.history-clear:hover{color:var(--danger)}@media (width<=760px){.main{flex-direction:column;grid-template-columns:minmax(0,1fr);gap:16px;padding:20px 16px 48px;display:flex}.col-left{flex-direction:column;gap:16px;width:100%;display:flex}.preview-panel{width:100%;position:static}.col-right{position:static}.header{padding:16px 18px}.qr-canvas-wrap{min-height:180px}}@media (width<=480px){.main{padding:14px 12px 36px}.header{gap:12px;padding:12px}.header h1{min-width:0}.header .header-right{flex-shrink:0}.card{padding:16px}.field-row{grid-template-columns:1fr;gap:14px}.header h1{font-size:16px}.icon-btn{width:36px;height:36px}.type-selector button{padding:8px 12px}.qr-canvas-wrap{padding:12px}.export-bar{grid-template-columns:1fr 1fr;display:grid}.export-btn{touch-action:manipulation;min-height:42px;padding:10px 12px}.copy-feedback{text-align:center;grid-column:1/-1}.history-item{align-items:flex-start}}
