.app{width:100%;max-width:none;margin:0;padding:20px 28px 90px}.app-header h1{font-size:20px;margin:0 0 4px}.subtitle{margin:0 0 16px;color:#666;font-size:13px}.bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 0;border-bottom:1px solid #eee}.bar-label{font-size:12px;color:#888;margin-right:2px}.btn-group{display:flex;gap:4px;margin-right:12px}.bar button,.section-actions button{padding:6px 12px;font-size:13px;border:1px solid #d5d5d5;background:#fafafa;border-radius:6px;color:#333;cursor:pointer}.bar button:hover,.section-actions button:hover{background:#f0f0f0}.bar button.active{border-color:#2563eb;background:#2563eb;color:#fff;font-weight:600}.bar button.toggle.on{border-color:#16a34a;color:#16a34a;background:#f0fdf4;font-weight:600}.toolbar{gap:6px}.color-pick,.height-slider{display:inline-flex;align-items:center;gap:6px;margin-right:6px}.color-pick input[type=color]{width:32px;height:26px;padding:0;border:1px solid #d5d5d5;border-radius:6px;background:none;cursor:pointer}.height-slider input[type=range]{width:130px}.color-code{font-size:12px;color:#888;font-variant-numeric:tabular-nums}.diff-status{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:10px 0 0;padding:6px 12px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:6px;font-size:12px;color:#475569}.diff-status.fail{background:#fef2f2;border-color:#fecaca;color:#b91c1c}.diff-status .ds-item{white-space:nowrap}.diff-status .ds-retry{padding:3px 10px;font-size:12px;border:1px solid #b91c1c;background:#fff;color:#b91c1c;border-radius:6px;cursor:pointer}.diff-status .ds-retry:hover{background:#fee2e2}.warning{margin:12px 0 0;padding:8px 12px;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;font-size:13px;color:#9a3412}.sections{display:flex;flex-direction:column;gap:28px;margin-top:20px}.editor-section{width:100%;max-width:none;border:1px solid #e5e5e5;border-radius:10px;padding:14px 16px 16px;background:#fff}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}.section-title-wrap{display:flex;align-items:baseline;gap:10px}.section-title-wrap h2{font-size:16px;margin:0}.stats{font-size:12px;color:#999;display:flex;gap:5px}.section-actions{display:flex;gap:6px}.section-actions button{padding:4px 12px;font-size:12px}.cm-host{width:100%}.cm-editor{width:100%;height:var(--editor-height, 480px);font-size:var(--editor-font-size, 26px);line-height:1.65;border:1px solid #ddd;border-radius:8px;background:#fff}.cm-editor.cm-focused{outline:none;border-color:#2563eb}.cm-editor .cm-scroller{overflow:auto;font-family:inherit;line-height:1.65}.cm-content{font-family:inherit;white-space:pre-wrap;color:#222;padding:14px 16px}.hl-text .cm-diff-og,.hl-textbg .cm-diff-og{color:var(--diff-og-color)}.hl-text .cm-diff-oc,.hl-textbg .cm-diff-oc{color:var(--diff-oc-color)}.hl-text .cm-diff-gc,.hl-textbg .cm-diff-gc{color:var(--diff-gc-color)}.bold-on .cm-diff,.all-bold .cm-content{font-weight:700}.cm-sync{background-color:color-mix(in srgb,var(--sync-color) 32%,transparent);border-radius:3px;box-shadow:0 0 0 1px color-mix(in srgb,var(--sync-color) 45%,transparent)}.cm-follow{background-color:color-mix(in srgb,#0ea5e9 20%,transparent);border-radius:3px;box-shadow:0 0 0 1px color-mix(in srgb,#0ea5e9 40%,transparent)}.cm-follow-caret{display:inline-block;width:0;border-left:2px solid #0ea5e9;height:1.1em;margin:0 1px;vertical-align:text-bottom}.cm-follow-caret.boundary{border-left:2px dashed #f59e0b}.cm-ghost{display:inline;color:#6b7280;cursor:pointer;-webkit-user-select:none;user-select:none}.cm-ghost-badge{font-size:.8em;color:#6b7280;background:#f3f4f6;border:1px dashed #cbd5e1;border-radius:4px;padding:0 4px;margin:0 2px;white-space:nowrap}.cm-ghost.expanded .cm-ghost-body{display:inline;color:#9ca3af;background:#f9fafb;border-left:2px solid #cbd5e1;padding:0 4px;margin-left:3px;font-style:italic}.cm-missing{background-color:color-mix(in srgb,#f59e0b 14%,transparent);border:1px dashed color-mix(in srgb,#f59e0b 70%,transparent);border-radius:3px}.hl-bg .cm-diff-og,.hl-textbg .cm-diff-og{background-color:color-mix(in srgb,var(--diff-og-color) 22%,transparent);border-radius:3px}.hl-bg .cm-diff-oc,.hl-textbg .cm-diff-oc{background-color:color-mix(in srgb,var(--diff-oc-color) 22%,transparent);border-radius:3px}.hl-bg .cm-diff-gc,.hl-textbg .cm-diff-gc{background-color:color-mix(in srgb,var(--diff-gc-color) 22%,transparent);border-radius:3px}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Malgun Gothic,Apple SD Gothic Neo,system-ui,sans-serif;color:#222;background:#fff}*{box-sizing:border-box}body{margin:0;background:#fff}button{font-family:inherit}
