: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;--accent: #16735f;--accent-bg: #e6f5f0;--accent-border: #a9dcca;--blue: #2c67c7;--blue-bg: #e8f0ff;--danger: #a84545;--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}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 minmax(280px,1fr) 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{display:flex;min-width:0;align-items:center;justify-content:flex-end;gap:7px}.tool-button,.icon-button,.preset-button,.sample-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)}.tool-button:hover,.icon-button:hover,.preset-button:hover,.sample-button:hover,.toggle:hover{border-color:var(--line-strong)}.tool-button.primary:hover{border-color:#0f5e4d;background:#0f5e4d}.preset-row{display:flex;min-width:0;gap:7px;overflow-x:auto;padding-bottom:1px;scrollbar-width:thin}.preset-button{flex:0 0 auto;padding:0 11px;color:var(--text-2)}.workspace{display:grid;min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.text-pane{display:grid;min-width:0;min-height:0;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.pane-head{display:flex;min-height:38px;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;border-bottom:1px solid var(--line);background:var(--surface-2)}.pane-label{font-size:.82rem;font-weight:850}.pane-count{color:var(--text-3);font-size:.72rem;font-weight:750;white-space:nowrap}textarea{width:100%;min-width:0;height:100%;min-height:220px;padding:14px;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.65;tab-size:2}textarea::placeholder{color:var(--text-3)}textarea[readonly]{background:#fbfcfd}.controls{display:grid;grid-template-columns:1.2fr .85fr .85fr;gap:10px}.option-group{display:grid;min-width:0;align-content:start;gap:8px;padding:10px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.group-label{color:var(--text-3);font-size:.72rem;font-weight:850}.toggle-list{display:flex;min-width:0;flex-wrap:wrap;gap:6px}.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)}.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}.sample-button{gap:6px;padding:0 10px;color:var(--blue);border-color:#bfd0f5;background:var(--blue-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:#faecec}@media(max-width:920px){.app-shell{grid-template-rows:auto auto auto auto auto}.workspace{grid-template-columns:1fr}.text-pane{min-height:280px}.controls{grid-template-columns:1fr}}@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}.statusbar{align-items:stretch;flex-direction:column}.status-actions{justify-content:stretch}.sample-button{flex:1 1 auto}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.stat{justify-content:space-between}textarea{min-height:190px;font-size:.9rem}}
