:root{color-scheme:light;font-family:Hiragino Kaku Gothic ProN,Hiragino Sans,Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--bg: #f5f6f8;--surface: #ffffff;--surface-2: #eef2f6;--line: #d7dee8;--line-strong: #aeb9c8;--text: #16191d;--text-2: #56606d;--text-3: #7f8997;--green: #16735f;--green-bg: #e6f5f0;--green-border: #a9dcca;--blue: #2c67c7;--blue-bg: #e8f0ff;--amber: #a76516;--amber-bg: #fff2d9;--red: #b2435b;--red-bg: #fae9ee;--radius: 8px}*{box-sizing:border-box}html{min-width:320px;min-height:100%;background:var(--bg)}body{min-height:100%;margin:0;color:var(--text);background:var(--bg)}body,button,input,select,textarea{font:inherit}button,input,select,textarea{color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}#root{min-height:100dvh}.app-shell{display:grid;width:min(1440px,100%);min-height:100dvh;margin:0 auto;padding:14px;grid-template-rows:auto auto auto auto;gap:10px}.topbar{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:12px;padding:0 2px}.brand{display:inline-flex;min-width:0;align-items:center;gap:10px}.brand-mark{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border-radius:var(--radius);color:#fff;background:var(--text);font-size:.95rem;font-weight:900;line-height:1}.brand-copy{display:flex;min-width:0;flex-direction:column;gap:1px}.brand-name{font-size:1.02rem;font-weight:850;line-height:1.2;letter-spacing:0}.brand-sub{color:var(--text-3);font-size:.72rem;font-weight:700}.top-actions,.status-actions,.decode-actions{display:flex;min-width:0;align-items:center;justify-content:flex-end;gap:7px}.file-input{display:none}.tool-button,.icon-button,.content-tab,.error-tab,.text-button,.history-item{display:inline-flex;min-height:34px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:7px;background:var(--surface);font-size:.82rem;font-weight:750;line-height:1;transition:border-color .15s,background .15s,color .15s}.tool-button{gap:6px;padding:0 10px}.tool-button.primary{color:#fff;border-color:var(--green);background:var(--green)}.icon-button{width:34px;padding:0;color:var(--text-2)}.tool-button:hover:not(:disabled),.icon-button:hover:not(:disabled),.content-tab:hover:not(:disabled),.error-tab:hover:not(:disabled),.text-button:hover:not(:disabled),.history-item:hover:not(:disabled){border-color:var(--line-strong)}.tool-button.primary:hover:not(:disabled){border-color:#105b4a;background:#105b4a}.workspace{display:grid;grid-template-columns:minmax(340px,.95fr) minmax(320px,1.05fr);gap:10px;min-width:0}.input-panel,.preview-panel,.decode-panel,.history-panel{display:grid;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.input-panel{align-content:start;gap:10px;padding-bottom:10px}.preview-panel{grid-template-rows:auto minmax(310px,1fr) auto}.panel-head{display:flex;min-height:44px;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;border-bottom:1px solid var(--line);background:var(--surface-2)}.panel-head.compact{min-height:40px}.panel-head span{display:inline-flex;min-width:0;align-items:center;gap:7px;font-size:.82rem;font-weight:850}.panel-head strong,.panel-head .text-button{color:var(--text-3);font-size:.72rem;font-weight:800;white-space:nowrap}.content-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:10px 10px 0}.content-tab{min-width:0;gap:6px;padding:0 8px;color:var(--text-2);background:var(--bg);font-size:.76rem}.content-tab[data-active=true],.error-tab[data-active=true]{color:var(--green);border-color:var(--green-border);background:var(--green-bg)}.field-grid,.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 10px}.field,.check-field{display:grid;min-width:0;gap:5px}.field-full{grid-column:1 / -1}.field span,.check-field span{color:var(--text-3);font-size:.72rem;font-weight:850}.field input,.field select,.field textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--text);font-size:.88rem;font-weight:650;outline:none}.field input,.field select{min-height:36px;padding:0 10px}.field input[type=color]{padding:3px}.field textarea{min-height:94px;resize:vertical;padding:9px 10px;line-height:1.55}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green-border);box-shadow:0 0 0 3px #16735f1f}.check-field{align-content:end;grid-template-columns:auto 1fr;align-items:center;min-height:60px;padding:0 2px 4px}.check-field input{width:18px;height:18px;accent-color:var(--green)}.settings-block{display:grid;gap:8px;padding-top:2px}.settings-title{display:inline-flex;align-items:center;gap:7px;padding:0 10px;color:var(--text-2);font-size:.78rem;font-weight:850}.error-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:0 10px}.error-tab{min-height:30px;padding:0 10px;color:var(--text-2);background:var(--bg);font-size:.74rem}.qr-stage{position:relative;display:grid;min-height:310px;place-items:center;overflow:auto;padding:18px;background-color:#fbfcfd;background-image:linear-gradient(45deg,#edf1f5 25%,transparent 25%),linear-gradient(-45deg,#edf1f5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf1f5 75%),linear-gradient(-45deg,transparent 75%,#edf1f5 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px}.qr-stage canvas{display:block;width:min(100%,560px);height:auto;border-radius:8px;background:#fff;box-shadow:0 1px 10px #14181e24}.qr-empty{display:inline-flex;min-height:36px;align-items:center;padding:0 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text-3);font-size:.8rem;font-weight:800}.qr-empty.error{color:var(--red);border-color:#e8b4c1;background:var(--red-bg)}.payload-strip{display:flex;min-height:42px;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;border-top:1px solid var(--line);color:var(--text-3);font-size:.76rem;font-weight:800}.payload-strip strong{color:var(--text)}.utility-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:10px}.decode-panel,.history-panel{align-content:start}.decode-panel[data-dragging=true]{border-color:var(--green);background:var(--green-bg)}.decode-actions{justify-content:flex-start;flex-wrap:wrap;padding:10px 10px 0}.decoded-result{display:grid;gap:8px;padding:10px}.decoded-result textarea{width:100%;min-height:94px;resize:vertical;border:1px solid var(--line);border-radius:7px;padding:9px 10px;color:var(--text);background:#fff;font-size:.82rem;font-weight:650;line-height:1.55}.decoded-meta{display:flex;justify-content:space-between;gap:10px;color:var(--text-3);font-size:.72rem;font-weight:800}.decoded-meta span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.decoded-meta strong{color:var(--text-2);white-space:nowrap}.decode-empty,.history-empty{display:flex;min-height:78px;align-items:center;gap:8px;padding:0 12px;color:var(--text-3);font-size:.78rem;font-weight:800}.history-list{display:grid;gap:7px;padding:10px}.history-item{display:grid;justify-items:start;gap:4px;min-width:0;min-height:48px;padding:8px 10px;text-align:left;background:var(--bg)}.history-item span{width:100%;overflow:hidden;color:var(--text);font-size:.78rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.history-item small{color:var(--text-3);font-size:.68rem;font-weight:800}.text-button{min-height:28px;padding:0 8px;background:var(--surface)}.statusbar{display:flex;min-height:42px;align-items:center;justify-content:space-between;gap:12px;padding:0 2px}.stats{display:flex;min-width:0;flex-wrap:wrap;gap:7px}.stat{display:inline-flex;min-height:30px;align-items:center;gap:6px;padding:0 9px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text-3);font-size:.73rem;font-weight:750}.stat strong{color:var(--text);font-weight:850}.feedback{display:inline-flex;min-height:30px;align-items:center;gap:6px;padding:0 10px;border-radius:7px;background:var(--green-bg);color:var(--green);font-size:.76rem;font-weight:800;white-space:nowrap}.feedback[data-tone=error]{color:var(--red);background:var(--red-bg)}@media(max-width:980px){.workspace,.utility-grid{grid-template-columns:1fr}.preview-panel{grid-template-rows:auto minmax(260px,1fr) auto}}@media(max-width:620px){.app-shell{padding:10px;gap:8px}.topbar{align-items:stretch;flex-direction:column}.top-actions{justify-content:stretch}.top-actions .tool-button{flex:1 1 auto}.content-tabs,.field-grid,.settings-grid{grid-template-columns:1fr}.qr-stage{min-height:250px;padding:12px}.decode-actions{align-items:stretch;flex-direction:column}.decode-actions .tool-button{width:100%}.statusbar{align-items:stretch;flex-direction:column}.status-actions{justify-content:stretch}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.stat{justify-content:space-between}}
