/* Парный тест: самостоятельный слой оформления. Другие инструменты не затронуты. */
.pair-page .pair-hero {padding-block:clamp(2.8rem,6vw,5rem) 2rem;min-height:0}
.pair-page .pair-hero h1 {font-size:clamp(2rem,4.6vw,3.9rem);line-height:1.1;max-width:22ch;text-wrap:balance}
.pair-page .pair-hero .lede {max-width:64ch;line-height:1.7}
.pair-page #матрица {padding-top:2rem}
.pair-page .pair-workspace {max-width:1140px;margin-inline:auto}
.pair-runtime {border:0;margin:0;padding:0;min-width:0;display:block}
.pair-steps {display:flex;flex-wrap:wrap;gap:.65rem;margin-bottom:1.3rem}
.pair-steps a {display:inline-flex;align-items:center;min-height:44px;border-bottom:2px solid var(--line);padding:.55rem .85rem;text-decoration:none;font-weight:700}
.pair-privacy,.pair-startup {padding:1rem 1.25rem;border:1px solid var(--line);background:var(--bg-soft);max-width:none;margin-bottom:1.3rem;line-height:1.65}
.pair-panel {border:1px solid var(--line);padding:clamp(1.1rem,3vw,2rem);margin-bottom:1.5rem;background:var(--panel);border-radius:4px;min-width:0;scroll-margin-top:110px}
.pair-section-head {display:flex;flex-wrap:wrap;gap:1rem;align-items:start;justify-content:space-between;margin-bottom:1.25rem}
.pair-page .pair-panel h2 {font-size:clamp(1.4rem,2.5vw,1.85rem);line-height:1.3;letter-spacing:-.015em;margin:0 0 .55rem}
.pair-page .pair-panel h3 {font-size:1.16rem;line-height:1.4;margin-bottom:.6rem}
.pair-fields {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.4rem}
.pair-query-field {grid-column:1/-1}
.pair-target-field {max-width:29rem}
.pair-page .field {gap:.5rem;margin:0;min-width:0}
.pair-page .field label {font-size:1rem;line-height:1.45;font-weight:700;text-transform:none;letter-spacing:normal}
.pair-required {font-weight:400;color:var(--muted);font-size:.9em}
.pair-page input:not([type=checkbox]),.pair-page textarea {font:inherit;font-size:1rem;line-height:1.55;max-width:100%;width:100%;min-height:48px;min-width:0;padding:.75rem .9rem;box-sizing:border-box;border:1px solid var(--muted);background:var(--bg);color:var(--ink);border-radius:3px}
.pair-page textarea {resize:vertical;min-height:8rem}
.pair-page input[type=file] {padding:.8rem;line-height:1.8}
.pair-page input[type=file]::file-selector-button {font:inherit;padding:.45rem .65rem;margin-right:.8rem;border:1px solid currentColor;border-radius:2px}
.pair-page .pair-help,.pair-page .pair-state {font-size:.94rem;line-height:1.65;color:var(--muted);max-width:74ch;margin:.4rem 0 .8rem}
.pair-page .pair-state {max-width:38ch;overflow-wrap:anywhere}
.pair-page .actions {display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-top:1rem}
.pair-page .button,.pair-page .icon-text-button {min-height:44px;white-space:normal;line-height:1.45;padding:.65rem 1rem;max-width:100%}
.pair-page button:disabled {cursor:wait;opacity:.55}
.pair-page :is(input,textarea,button,a,summary):focus-visible {outline:3px solid var(--amber,#ffbd00);outline-offset:3px}
.pair-page [aria-invalid=true] {border:2px solid var(--red,#e84836)}
.pair-feedback:not(:empty) {padding:1rem 1.2rem;border-left:3px solid var(--amber,#ffbd00);background:var(--bg-soft);line-height:1.65;margin:1rem 0;overflow-wrap:anywhere}
.pair-feedback h3 {margin:0 0 .7rem}
.pair-feedback ul {padding-left:1.3rem;margin:0}
.pair-feedback a {text-decoration:underline;min-height:44px;display:inline-flex;align-items:center}
.pair-page .condition-stack {display:grid;gap:1.15rem;margin-top:1.4rem}
.pair-page .condition-card {min-width:0;padding:1.25rem;border:1px solid var(--line);background:var(--bg);border-radius:3px}
.pair-page .condition-card>header {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:start;gap:.8rem}
.pair-page .condition-card h3 {max-width:42ch;overflow-wrap:anywhere;font-size:1.2rem}
.pair-page .repeat-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}
.pair-page .repeat-card {min-width:0;border:1px solid var(--line);padding:1rem;background:var(--bg-soft)}
.pair-page .repeat-card header {display:flex;justify-content:space-between;align-items:center;gap:.6rem}
.pair-page .repeat-card dl>div {display:grid;grid-template-columns:5.5rem minmax(0,1fr);gap:.65rem;margin-block:.45rem}
.pair-page .repeat-card dd {margin:0;overflow-wrap:anywhere}
.pair-page .repeat-card pre {white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font:inherit;line-height:1.65;max-height:28rem;overflow:auto;padding:.8rem;background:var(--bg)}
.pair-page .repeat-card details {margin-top:.7rem}
.pair-page .repeat-card .fingerprint {font-size:.82rem;overflow-wrap:anywhere;color:var(--muted)}
.pair-page .repeat-card ul {padding-left:1.2rem;overflow-wrap:anywhere}
.pair-page summary {cursor:pointer;line-height:1.5;padding:.7rem 0;min-height:44px}
.pair-page .pair-detail {padding:.25rem 0;border-top:1px solid var(--line);margin-top:1rem;min-width:0}
.pair-page .pair-detail>summary {font-weight:700}
.pair-transfer-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2rem}
.pair-transfer-grid>div {min-width:0}
.pair-undo {border:1px solid var(--line);padding:1rem;margin-top:1rem}
.pair-page .metric-board {grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:1rem 0}
.pair-page .metric-board article {padding:1rem;min-width:0;border:1px solid var(--line)}
.pair-page .metric-board strong {font-size:1.4rem;line-height:1.35;overflow-wrap:anywhere}
.pair-page .metric-board small {display:block;line-height:1.6;margin-top:.4rem}
.pair-page #pair-version-log>div {display:flex;gap:1rem;flex-wrap:wrap;justify-content:space-between;padding:.65rem 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.pair-dialog {padding:0;border:1px solid var(--line);width:min(760px,calc(100vw - 2rem));max-width:none;max-height:calc(100dvh - 2rem);background:var(--bg,#0b0a09);color:var(--ink,#ede9e1);border-radius:5px;overflow:auto;overscroll-behavior:contain;box-shadow:0 12px 80px #0008}
.pair-dialog::backdrop {background:#000a}
.pair-dialog-inner {padding:clamp(1.1rem,4vw,2rem)}
.pair-dialog header {display:flex;align-items:start;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.pair-dialog h2 {font-size:1.55rem;line-height:1.3;margin:0;max-width:26ch;overflow-wrap:anywhere}
.pair-dialog .pair-fields {margin-bottom:1.25rem}
.pair-dialog .field {margin-bottom:1rem}
.pair-dialog .check-line {display:flex;align-items:start;gap:.7rem;line-height:1.6;padding:.65rem 0}
.pair-dialog input[type=checkbox] {flex:none;inline-size:22px;block-size:22px;margin-top:.2rem}
.pair-dialog .pair-confirm-info {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;padding:1rem;border:1px solid var(--line)}
.pair-dialog .pair-discard {border-left:3px solid var(--red,#e84836);padding:1rem;margin-top:1rem}
.pair-page [hidden] {display:none!important}
@media(max-width:700px){
 .pair-fields,.pair-transfer-grid {grid-template-columns:minmax(0,1fr);gap:1.15rem}
 .pair-page .repeat-grid {grid-template-columns:minmax(0,1fr)}
 .pair-page .metric-board {grid-template-columns:repeat(2,minmax(0,1fr))}
 .pair-page .pair-panel {padding:1rem}.pair-page .condition-card {padding:1rem}
 .pair-dialog header {flex-wrap:wrap}.pair-dialog header .button {margin-left:auto}
 .pair-page .condition-card>header .actions {margin-top:.15rem}
 .pair-page .pair-workspace {padding-inline:1rem;width:100%}
 .pair-steps {gap:.3rem}.pair-steps a {flex:1 1 100%;padding:.55rem .5rem}
 .pair-page .pair-panel .actions .button {flex:1 1 auto}
}
@media print{.pair-page .site-header,.pair-page .site-footer,.pair-page .pair-steps,.pair-page .actions,.pair-page .pair-startup,.pair-dialog,.pair-page #pair-files {display:none!important}.pair-page .pair-panel {border:0;box-shadow:none;background:white;color:black;break-inside:auto}.pair-page .repeat-grid {display:block}.pair-page .repeat-card{break-inside:avoid;color:black;background:white}.pair-page .metric-board{display:block}.pair-page .pair-hero{padding:0}}
