: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;--red: #b2435b;--red-bg: #fae9ee;--red-border: #e8b4c1;--green: #16735f;--green-bg: #e6f5f0;--amber: #a76516;--amber-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,input{font:inherit}button,input{color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}#root{height:100dvh}.app-shell{display:grid;width:min(1440px,100%);height:100dvh;margin:0 auto;padding:14px;grid-template-rows:auto auto minmax(0,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,.empty-actions,.status-actions{display:flex;min-width:0;align-items:center;justify-content:flex-end;gap:7px}.file-input{display:none}.tool-button,.icon-button,.segment-button,.action-button,.zoom-button,.zoom-text-button{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(--red);background:var(--red)}.icon-button{width:34px;padding:0;color:var(--text-2)}.tool-button:hover:not(:disabled),.icon-button:hover:not(:disabled),.segment-button:hover:not(:disabled),.action-button:hover:not(:disabled),.zoom-button:hover:not(:disabled),.zoom-text-button:hover:not(:disabled){border-color:var(--line-strong)}.tool-button.primary:hover:not(:disabled){border-color:#94344a;background:#94344a}.tool-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.55fr);gap:10px}.segment-group,.strength-panel,.history-panel,.quick-actions{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.segment-group{display:flex;min-width:0;align-items:center;gap:8px;padding:7px}.segment-label{flex:0 0 auto;color:var(--text-3);font-size:.72rem;font-weight:850}.segment-buttons{display:flex;min-width:0;flex-wrap:wrap;gap:6px}.segment-button{min-height:30px;padding:0 9px;color:var(--text-2);background:var(--bg);font-size:.76rem}.segment-button[data-active=true]{color:var(--red);border-color:var(--red-border);background:var(--red-bg)}.strength-panel{display:grid;min-width:0;gap:6px;padding:8px 10px}.strength-head{display:flex;justify-content:space-between;gap:8px;color:var(--text-3);font-size:.72rem;font-weight:850}.strength-head strong{color:var(--text)}.strength-panel input{width:100%;accent-color:var(--red)}.workspace{display:grid;min-width:0;min-height:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.workspace[data-dragging=true]{border-color:var(--red);background:var(--red-bg)}.canvas-frame{display:grid;min-width:0;min-height:0;grid-template-rows:auto minmax(0,1fr)}.canvas-head,.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)}.canvas-title{display:flex;min-width:0;flex-direction:column;gap:2px}.canvas-title span,.panel-head span:first-child{overflow:hidden;font-size:.82rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.canvas-title small,.panel-head span:last-child{color:var(--text-3);font-size:.72rem;font-weight:750;white-space:nowrap}.canvas-tools{display:flex;flex:0 0 auto;align-items:center;gap:5px}.zoom-button{width:30px;min-height:30px;padding:0;color:var(--text-2);background:var(--surface)}.zoom-text-button{min-height:30px;padding:0 8px;color:var(--text-2);background:var(--surface);font-size:.72rem}.zoom-readout{display:inline-flex;min-width:58px;min-height:30px;align-items:center;justify-content:center;padding:0 8px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);font-size:.72rem;font-weight:850;white-space:nowrap}.canvas-wrap{display:grid;min-width:0;min-height:0;place-items:center;overflow:auto;padding:12px;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}.canvas-wrap[data-view-mode=manual]{align-content:start;justify-content:start;place-items:start}canvas{display:block;max-width:100%;max-height:100%;touch-action:none;cursor:crosshair;background:#fff;box-shadow:0 1px 8px #14181e24}canvas[data-view-mode=manual]{max-width:none;max-height:none}.empty-state{display:grid;min-height:0;place-items:center;align-content:center;gap:12px;padding:24px;text-align:center}.empty-icon{display:grid;width:64px;height:64px;place-items:center;border-radius:var(--radius);color:var(--red);background:var(--red-bg)}.empty-title{font-size:1.08rem;font-weight:850}.empty-actions{flex-wrap:wrap;justify-content:center}.lower-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.history-panel{display:grid;min-width:0;overflow:hidden}.redaction-list{display:flex;min-width:0;gap:6px;overflow-x:auto;padding:8px 10px}.redaction-item{display:inline-grid;min-width:128px;gap:2px;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--bg)}.redaction-item span{color:var(--red);font-size:.74rem;font-weight:850}.redaction-item strong{font-size:.78rem;font-weight:850}.redaction-item small{color:var(--text-3);font-size:.68rem;font-weight:800}.empty-list{display:flex;min-height:52px;align-items:center;gap:7px;padding:0 12px;color:var(--text-3);font-size:.78rem;font-weight:800}.quick-actions{display:flex;align-items:center;gap:7px;padding:8px}.action-button{gap:6px;padding:0 10px;color:var(--text-2);background:var(--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}.feedback{display:inline-flex;min-height:30px;align-items:center;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(--amber);background:var(--amber-bg)}@media(max-width:920px){.app-shell{grid-template-rows:auto auto minmax(0,1fr) auto auto}.tool-row,.lower-grid{grid-template-columns:1fr}.quick-actions{flex-wrap:wrap}}@media(max-width:620px){.app-shell{padding:10px;gap:8px}.topbar{align-items:stretch;flex-direction:column}.top-actions{flex-wrap:wrap;justify-content:stretch}.canvas-head{align-items:stretch;flex-direction:column;padding:8px 10px}.canvas-tools{flex-wrap:wrap}.tool-button{flex:1 1 auto}.segment-group{align-items:flex-start;flex-direction:column}.canvas-wrap{padding:10px}.workspace,.empty-state{min-height:310px}.quick-actions{align-items:stretch;flex-direction:column}.action-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}}
