body { background: var(--page); color: var(--text); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; translate: 0 -160%; padding: 10px 14px; border-radius: 8px; background: var(--text); color: white; }
.skip-link:focus { translate: 0; }
.eyebrow { margin: 0; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tool-hero { width: min(1180px, calc(100% - 32px)); margin: auto; padding: clamp(60px,10vw,130px) 0 clamp(36px,6vw,72px); }
.tool-hero h1 { margin: 14px 0 22px; font-family: var(--font-serif); font-size: clamp(50px,8vw,104px); line-height: .98; letter-spacing: -.065em; }
.tool-hero h1 em { color: var(--accent); font-style: normal; }
.tool-hero > p:last-child { max-width: 720px; color: var(--muted); line-height: 1.9; }

.compare-workspace { width: min(1400px, calc(100% - 24px)); margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.editor-card, .result-card, .content-section { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.editor-card { overflow: hidden; }
.editor-card header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.editor-card h2, .result-card h2, .content-section h2 { margin: 7px 0 0; font-family: var(--font-serif); }
.editor-card button { min-height: 38px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--text); }
.editor-card textarea { width: 100%; min-height: 420px; resize: vertical; border: 0; background: var(--surface); color: var(--text); padding: 22px; font-family: var(--font-serif); font-size: 17px; line-height: 1.8; }

.action-bar { width: min(1400px, calc(100% - 24px)); margin: 14px auto; display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.primary-button { min-height: 46px; border: 0; border-radius: 11px; background: var(--primary); color: white; padding-inline: 18px; font-weight: 800; }
.action-bar > span { flex: 1; color: var(--muted); font-size: 11px; }
.action-bar div { display: flex; gap: 8px; }
.action-bar div button { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); }
.action-bar button:disabled { opacity: .4; cursor: not-allowed; }

.result-card { width: min(1400px, calc(100% - 24px)); margin: auto; overflow: hidden; }
.result-card > header { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 20px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.result-card dl { display: flex; gap: 18px; margin: 0; }
.result-card dl div { text-align: center; }
.result-card dt { color: var(--muted); font-size: 10px; }
.result-card dd { margin: 4px 0 0; font-size: 20px; font-weight: 800; }
.diff-output { min-height: 260px; padding: 24px; font-family: var(--font-serif); font-size: 17px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-output ins { background: #dcfce7; color: #166534; text-decoration: none; }
.diff-output del { background: #fee2e2; color: #991b1b; }
.diff-output p { color: var(--muted); }

.content-section { width: min(1180px, calc(100% - 32px)); margin: 30px auto 0; padding: 28px; }

@media (max-width: 860px) { .compare-workspace { grid-template-columns: 1fr; } .action-bar { align-items: stretch; flex-direction: column; } .action-bar div { width: 100%; } .action-bar div button { flex: 1; } .result-card > header { align-items: start; flex-direction: column; } }
