.compare-main { padding-bottom: 105px; }
.focused-header-link { justify-self: end; color: #292725; font-size: 12px; font-weight: 800; text-decoration: none; }
.focused-header-link span { color: #7d6bb3; }
.compare-main .breadcrumbs { width: 100%; margin-top: 22px; }
.compare-main .text-hero { min-height: 345px; padding-top: 42px; }
.compare-main .text-hero h1 { font-size: clamp(46px, 6vw, 70px); }
.compare-workbench { margin-bottom: 0; }
.compare-workbench [hidden] { display: none !important; }

.compare-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 20px 0 0; padding: 6px; border-radius: 13px; background: #efebe4; }
.compare-mode-tabs button { min-height: 43px; border: 0; border-radius: 9px; color: #777067; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.compare-mode-tabs button.active { color: #fff; background: #292725; box-shadow: 0 7px 18px rgba(41, 39, 37, .13); }

.compare-options { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 15px 2px; }
.compare-options > label { display: inline-flex; align-items: center; gap: 7px; color: #686159; font-size: 10px; font-weight: 700; cursor: pointer; }
.compare-options input { accent-color: #7d6bb3; }
.compare-option-mode { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 14px; }
.compare-option-mode > label { display: inline-flex; align-items: center; gap: 7px; color: #686159; font-size: 10px; font-weight: 700; cursor: pointer; }
.compare-select { display: inline-flex; align-items: center; gap: 8px; }
.compare-select span { color: #777067; font-size: 10px; font-weight: 800; }
.compare-select select { height: 35px; border: 1px solid #d8d1c7; border-radius: 8px; outline: 0; padding: 0 30px 0 10px; color: #4c4740; background: #fff; font-size: 10px; font-weight: 750; }
.view-buttons { display: inline-flex; gap: 4px; margin-left: auto; padding: 3px; border-radius: 9px; background: #eeeae3; }
.view-buttons button { border: 0; border-radius: 7px; padding: 7px 10px; color: #817a71; background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.view-buttons button.active { color: #665790; background: #fff; box-shadow: 0 3px 10px rgba(60, 50, 44, .08); }

.compare-input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare-editor { min-width: 0; overflow: hidden; border: 1px solid #ddd7ce; border-radius: 16px; background: #fbfaf7; }
.compare-editor > div { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid #e4dfd7; }
.compare-editor strong { font-size: 11px; }
.compare-editor small { color: #979087; font-size: 8px; }
.compare-editor textarea { width: 100%; min-height: 315px; display: block; resize: vertical; border: 0; outline: 0; padding: 17px; color: #2c2925; background: transparent; font: 12px/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; tab-size: 2; }
.compare-editor textarea::placeholder { color: #b0aaa1; }
.compare-editor:focus-within { border-color: #9c8dca; box-shadow: 0 0 0 3px rgba(125, 107, 179, .09); }

.compare-action-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
.compare-action-row > div { display: flex; flex-wrap: wrap; gap: 7px; }
.compare-action-row button { min-height: 38px; border: 1px solid #d8d2c9; border-radius: 9px; padding: 0 13px; color: #6d665e; background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }
.compare-action-row button:hover { border-color: #9d91bd; color: #62548d; }
.compare-action-row .compare-primary { min-width: 145px; border: 0; color: #fff; background: #7d6bb3; font-size: 10px; }
.compare-action-row .compare-primary:hover { color: #fff; background: #6d5ca2; }
.compare-status { min-height: 18px; margin: 10px 2px 0; color: #746990; font-size: 10px; font-weight: 700; }
.compare-status.error { color: #b54838; }

.compare-results { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e0dbd2; }
.compare-result-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.compare-result-heading > div:first-child { display: grid; gap: 4px; }
.compare-result-heading span { color: #9a938b; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.compare-result-heading h3 { margin: 0; font-size: 18px; }
.compare-result-heading > div:last-child { display: flex; gap: 6px; }
.compare-result-heading button { min-height: 34px; border: 1px solid #d7d1c8; border-radius: 8px; padding: 0 11px; color: #6e675f; background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }

.compare-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.compare-summary article { min-height: 66px; display: grid; place-content: center; gap: 4px; border-radius: 11px; background: #f2efe9; text-align: center; }
.compare-summary strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.compare-summary span { color: #8b847b; font-size: 8px; font-weight: 750; }
.compare-summary article:first-child { color: #2f7853; background: #e9f5ed; }
.compare-summary article:nth-child(2) { color: #a44336; background: #faece9; }

.diff-output { min-height: 250px; max-height: 580px; overflow: auto; margin: 0; border: 1px solid #ddd8cf; border-radius: 14px; padding: 18px; color: #37332e; background: #f8f6f1; font: 11px/1.8 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-output .diff-equal { color: #615b54; }
.diff-output .diff-delete { color: #8f352b; background: #f6deda; text-decoration: line-through; text-decoration-thickness: 1px; }
.diff-output .diff-insert { color: #256543; background: #dcefe3; }
.split-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.split-diff article { min-width: 0; }
.split-diff header { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border: 1px solid #ddd8cf; border-bottom: 0; border-radius: 12px 12px 0 0; color: #6f6860; background: #efebe5; font-size: 9px; font-weight: 800; }
.split-diff .diff-output { min-height: 300px; border-radius: 0 0 12px 12px; }

.list-result-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.list-result-tabs button { border: 1px solid #d8d2c8; border-radius: 999px; padding: 7px 10px; color: #756e65; background: #fff; font-size: 8px; font-weight: 800; cursor: pointer; }
.list-result-tabs button.active { border-color: #292725; color: #fff; background: #292725; }

.compare-benefits { margin-top: 18px; }

@media (max-width: 760px) {
  .compare-main { width: calc(100% - 24px); }
  .compare-main .text-hero { min-height: 0; padding-top: 32px; }
  .focused-header-link { display: none; }
  .compare-workbench { padding: 12px; }
  .compare-options, .compare-option-mode { align-items: flex-start; flex-direction: column; }
  .view-buttons { margin-left: 0; }
  .compare-input-grid, .split-diff { grid-template-columns: 1fr; }
  .compare-editor textarea { min-height: 235px; }
  .compare-action-row, .compare-result-heading { align-items: flex-start; flex-direction: column; }
  .compare-action-row > div, .compare-result-heading > div:last-child { width: 100%; }
  .compare-action-row button, .compare-result-heading button { flex: 1; }
}
