: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: #15191f;--text-2: #586270;--text-3: #818b99;--accent: #16735f;--accent-bg: #e6f5f0;--accent-border: #a9dcca;--danger: #b2435b;--danger-bg: #fae9ee;--warn: #a76516;--warn-bg: #fff2d9;--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,textarea{font:inherit}button,textarea{color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-decoration:none}#root{min-height:100dvh}.app-shell{display:grid;width:min(1440px,100%);height:100dvh;margin:0 auto;padding:14px;grid-template-rows:auto minmax(0,1fr) auto;gap:10px;overflow:hidden}.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{display:flex;min-width:0;align-items:center;justify-content:flex-end;gap:7px}.tool-button,.icon-button,.sample-button,.mini-button,.toggle{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(--accent);background:var(--accent)}.icon-button{width:34px;padding:0;color:var(--text-2)}.mini-button{gap:5px;min-height:28px;padding:0 8px;color:var(--text-2);font-size:.74rem}.tool-button:hover,.icon-button:hover,.sample-button:hover,.mini-button:hover,.toggle:hover{border-color:var(--line-strong)}.tool-button.primary:hover{border-color:#0f5e4d;background:#0f5e4d}.workspace{display:grid;min-height:0;grid-template-columns:minmax(0,.95fr) minmax(430px,1.05fr);gap:10px}.input-panel,.result-panel,.output-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.input-panel{display:grid;min-width:0;min-height:0;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}.panel-head{display:flex;min-height:40px;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;border-bottom:1px solid var(--line);background:var(--surface-2)}.panel-title,.section-head span{display:inline-flex;align-items:center;gap:7px}.panel-title{font-size:.84rem;font-weight:850}.panel-count,.sub-count{color:var(--text-3);font-size:.76rem;font-weight:800;white-space:nowrap}textarea{width:100%;min-width:0;height:100%;min-height:260px;padding:16px;border:0;outline:0;resize:none;background:transparent;color:var(--text);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,ui-monospace,monospace;font-size:.95rem;line-height:1.7;tab-size:2}textarea::placeholder{color:var(--text-3)}.options{display:flex;flex-wrap:wrap;gap:6px;padding:10px;border-top:1px solid var(--line);background:#fbfcfd}.toggle{min-height:30px;padding:0 9px;color:var(--text-2);background:var(--bg);font-size:.76rem}.toggle[data-active=true]{color:var(--accent);border-color:var(--accent-border);background:var(--accent-bg)}.result-panel{display:grid;min-width:0;min-height:0;align-content:start;gap:10px;overflow-y:auto;padding:10px;scrollbar-gutter:stable}.output-card{display:grid;gap:10px;padding:12px}.primary-output{border-left:3px solid var(--accent-border)}.section-head{display:flex;min-height:30px;align-items:center;justify-content:space-between;gap:10px;color:var(--text-2);font-size:.82rem;font-weight:850}.url-output{min-width:0;max-height:132px;margin:0;overflow:auto;padding:10px;border-radius:7px;background:var(--bg);color:var(--text);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,ui-monospace,monospace;font-size:.86rem;line-height:1.6;overflow-wrap:anywhere}.url-output.muted{color:var(--text-2)}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.summary-item{display:grid;gap:4px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:7px;background:var(--surface)}.summary-item span,.query-reason,.empty-note{color:var(--text-3);font-size:.72rem;font-weight:750}.summary-item strong{overflow:hidden;color:var(--text);font-size:.95rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.query-list{display:grid;gap:6px;max-height:260px;overflow-y:auto;padding-right:2px}.query-row{display:grid;grid-template-columns:auto minmax(90px,.7fr) minmax(0,1.3fr) auto;gap:8px;align-items:center;min-width:0;padding:8px;border-radius:7px;background:var(--bg)}.query-row[data-status=remove]{background:var(--danger-bg)}.query-status{display:inline-flex;min-height:22px;align-items:center;justify-content:center;padding:0 7px;border-radius:999px;background:var(--accent-bg);color:var(--accent);font-size:.7rem;font-weight:850}.query-row[data-status=remove] .query-status{background:#fff;color:var(--danger)}.query-key,.query-value{min-width:0;overflow:hidden;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,ui-monospace,monospace;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.query-key{font-weight:850}.warning-list{display:flex;flex-wrap:wrap;gap:6px}.warning-list span{display:inline-flex;min-height:28px;align-items:center;padding:0 9px;border-radius:999px;color:var(--warn);background:var(--warn-bg);font-size:.74rem;font-weight:800}.empty-state{display:grid;min-height:260px;place-items:center;align-content:center;gap:10px;color:var(--text-3);text-align:center}.empty-state p,.empty-note{margin:0}.statusbar{display:flex;min-height:36px;align-items:center;justify-content:space-between;gap:12px;padding:0 2px}.status-note{color:var(--text-3);font-size:.76rem;font-weight:750}.sample-button{gap:6px;padding:0 10px;color:var(--accent);border-color:var(--accent-border);background:var(--accent-bg)}.feedback{display:inline-flex;min-height:30px;align-items:center;padding:0 10px;border-radius:7px;background:var(--accent-bg);color:var(--accent);font-size:.76rem;font-weight:800;white-space:nowrap}.feedback[data-tone=error]{color:var(--danger);background:var(--danger-bg)}@media(max-width:1020px){.app-shell{height:auto;min-height:100dvh;overflow:visible}.workspace{grid-template-columns:1fr}.result-panel{overflow:visible}}@media(max-width:620px){.app-shell{padding:10px;gap:8px}.topbar{align-items:stretch;flex-direction:column}.top-actions{justify-content:stretch}.tool-button{flex:1 1 auto}.workspace,.result-panel{gap:8px}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.query-row{grid-template-columns:auto minmax(0,1fr)}.query-value,.query-reason{grid-column:2}.statusbar{align-items:stretch;flex-direction:column}.status-actions{justify-content:stretch}.sample-button{flex:1 1 auto}textarea{min-height:220px;font-size:.9rem}}
