@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');
:root { --ink: #17221f; --muted: #6f7d77; --paper: #f6f5ef; --panel: #fffefa; --line: #d9ded7; --green: #0e6b50; --mint: #dff3e9; --amber: #e1a83e; --red: #b8463d; --shadow: 0 18px 45px rgba(22, 43, 34, .09); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Manrope, sans-serif; }
[hidden] { display: none !important; }
.shell { max-width: 1440px; margin: auto; padding: 54px 5vw 30px; }
.masthead { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; margin-bottom: 48px; }
.eyebrow, .step-label { color: var(--green); font: 500 11px/1 DM Mono, monospace; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { margin: 0 0 18px; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
h1 em { color: var(--green); font-style: normal; }
.lede { max-width: 480px; margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.header-tools { display: flex; align-items: flex-end; gap: 10px; }
.stats-chip, .status-chip { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; color: var(--muted); font: 11px DM Mono, monospace; white-space: nowrap; background: rgba(255,255,255,.45); }
.stats-chip { display: grid; gap: 4px; border-radius: 8px; }
.stats-chip strong { color: var(--ink); font-size: 12px; font-weight: 500; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #43a66e; box-shadow: 0 0 0 3px #d9f1e0; }
.tool-tabs { display: flex; gap: 2px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.tool-tab { cursor: pointer; border: 0; border-bottom: 3px solid transparent; padding: 13px 17px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 700; }
.tool-tab:hover, .tool-tab.active { color: var(--green); }
.tool-tab.active { border-bottom-color: var(--green); }
.workspace { background: rgba(255,255,255,.65); border: 1px solid rgba(217,222,215,.9); box-shadow: 0 8px 25px rgba(22, 43, 34, .05); padding: clamp(18px, 3vw, 38px); }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-card { min-width: 0; background: var(--panel); border: 1px solid var(--line); }
.input-card.is-dragging { border-color: var(--green); background: #f4fbf6; }
.card-heading, .results-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 21px 22px 15px; border-bottom: 1px solid var(--line); }
.card-heading h2, .results-heading h2 { margin: 8px 0 0; font-size: 19px; letter-spacing: -.02em; }
.step-label { margin: 0; font-size: 10px; }
.file-button, .quiet-button, .view-button { cursor: pointer; color: var(--green); border: 1px solid #a8c6b9; background: transparent; padding: 9px 11px; font: 500 11px DM Mono, monospace; }
.file-button input { display: none; }
textarea { display: block; width: 100%; height: 315px; padding: 20px 22px; border: 0; outline: none; resize: vertical; color: var(--ink); background: transparent; font: 12px/1.7 DM Mono, monospace; }
textarea:focus { box-shadow: inset 0 0 0 2px var(--green); }
.drop-hint { padding: 12px 22px 14px; color: var(--muted); font: 10px DM Mono, monospace; border-top: 1px solid #edf0eb; }
.action-row { display: flex; align-items: center; gap: 15px; margin: 25px 0 44px; }
button { font: inherit; }
.primary-button, .download-button { display: flex; align-items: center; justify-content: space-between; gap: 36px; border: 0; cursor: pointer; padding: 14px 16px; background: var(--green); color: white; font-weight: 700; }
.primary-button:hover, .download-button:hover:not(:disabled) { background: #084d3a; }
.button-arrow { font-size: 20px; font-weight: 400; line-height: 0; }
.quiet-button { color: var(--muted); border-color: var(--line); }
.operation-label { margin: 0 0 0 auto; color: var(--muted); font: 11px DM Mono, monospace; }
.results-section { border-top: 1px solid var(--line); padding-top: 2px; }
.review-controls { display: flex; align-items: center; gap: 14px; }
.view-controls { display: flex; gap: 4px; }
.view-button { color: var(--muted); border-color: transparent; }
.view-button.active { color: var(--ink); background: #e9eee8; }
.summary-bar { display: flex; flex-wrap: wrap; gap: 24px; padding: 14px 20px; background: #edf5ed; color: var(--green); font: 11px DM Mono, monospace; }
.summary-bar strong { color: var(--ink); font-weight: 500; }
.message-panel { margin-top: 14px; padding: 14px 18px; font: 11px/1.6 DM Mono, monospace; white-space: pre-wrap; }
.error-panel { color: #87352f; border-left: 3px solid var(--red); background: #fff0ed; }
.success-panel { color: var(--green); border-left: 3px solid #43a66e; background: var(--mint); }
.diff-viewer { max-height: 68vh; overflow: auto; border: 1px solid var(--line); background: #fbfcf8; }
.empty-state { min-height: 290px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-mark { margin-bottom: 12px; color: var(--green); font: 26px DM Mono, monospace; }
.empty-state p { margin: 0 0 6px; color: var(--ink); font-weight: 700; }
.empty-state span { font: 10px DM Mono, monospace; }
.diff-columns { display: grid; grid-template-columns: 1fr 1fr; min-width: 700px; }
.diff-pane { min-width: 0; border-right: 1px solid var(--line); }
.diff-pane:last-child { border-right: 0; }
.pane-title { padding: 10px 15px; color: var(--muted); background: #f0f3ed; border-bottom: 1px solid var(--line); font: 10px DM Mono, monospace; }
.code-line { display: flex; min-height: 20px; border-bottom: 1px solid rgba(217,222,215,.5); font: 11px/20px DM Mono, monospace; white-space: pre; }
.line-number { width: 42px; flex: 0 0 42px; padding-right: 10px; color: #a2afa8; text-align: right; user-select: none; }
.line-marker { width: 18px; color: #9eaaa3; text-align: center; }
.line-content { overflow: hidden; padding-right: 10px; text-overflow: clip; }
.code-line.added { background: #e3f5e8; color: #145b3e; }
.code-line.removed { background: #fbe5e1; color: #8e3b34; }
.code-line.changed { background: #fff2d5; color: #79531c; }
.unified-pane { min-width: 700px; }
.download-row { display: flex; justify-content: flex-end; padding-top: 18px; }
.download-button:disabled { cursor: not-allowed; background: #bdc8c0; }
.simple-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.simple-heading h2 { margin: 8px 0 0; font-size: 22px; }
.single-tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.single-tool-grid > div { min-width: 0; border: 1px solid var(--line); background: var(--panel); }
.single-tool-grid textarea { height: 430px; }
.editor-shell { display: grid; grid-template-columns: 46px minmax(0, 1fr); height: 430px; overflow: hidden; }
.editor-shell textarea { width: 100%; height: 100%; min-width: 0; white-space: pre; overflow: auto; overflow-wrap: normal; }
.line-number-gutter { overflow: hidden; padding: 20px 10px 20px 0; color: #a2afa8; background: #f0f3ed; border-right: 1px solid var(--line); font: 12px/1.7 DM Mono, monospace; text-align: right; user-select: none; white-space: pre; }
.readonly-output { background: #f0f3ed; }
.compact-action { margin: 22px 0 0; }
.pin-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 18px; }
.pin-progress-track { display: flex; gap: 2px; min-height: 12px; padding: 2px; background: #e3e8e1; }
.pin-progress-segment { flex: 1 1 0; min-width: 3px; height: 8px; background: #c7d0c8; }
.pin-progress-segment.success { background: #38a96b; }
.pin-progress-segment.failure { background: #c94f49; }
.pin-progress-label { color: var(--muted); font: 11px DM Mono, monospace; white-space: nowrap; }
.tool-note { margin-top: 18px; color: var(--muted); font: 10px/1.6 DM Mono, monospace; }
footer { padding-top: 22px; color: var(--muted); font: 10px DM Mono, monospace; text-align: right; }
@media (max-width: 800px) { .shell { padding: 30px 16px 22px; } .masthead { margin-bottom: 32px; } .masthead, .action-row { display: block; } .header-tools { align-items: flex-start; flex-wrap: wrap; margin-top: 22px; } .status-chip { display: inline-block; } .input-grid, .single-tool-grid { grid-template-columns: 1fr; } .action-row > * { margin-bottom: 12px; } .operation-label { margin-top: 15px; } .results-heading { align-items: flex-end; } .review-controls { display: block; } .review-controls .download-button { margin-top: 10px; } .tool-tabs { overflow-x: auto; } .tool-tab { white-space: nowrap; } }