/* Unlimited comparison: keep labels and nominal controls in view. */
.amt-scroll{max-height:78vh;isolation:isolate;scrollbar-gutter:stable}
.amt .amt-table{border-collapse:separate;border-spacing:0;min-width:780px}
.amt .amt-table thead th{position:sticky;top:0;z-index:3;text-transform:none}
.amt .amt-table tbody th[scope=row],.amt .amt-table .amt-param{position:sticky;left:0;z-index:2;box-shadow:2px 0 3px #bbc7d4}
.amt .amt-table thead .amt-param{z-index:4}
.amt .amt-table td.amt-diff{background:#ffedbd;color:#624300;box-shadow:inset 0 -2px #d69a21}
.amt-diff-mark{display:inline-block;margin-left:7px;font-weight:800;border:1px solid #aa740d;border-radius:3px;padding:0 4px;font-size:12px}
.amt-diff-key{background:#ffedbd;color:#624300;padding:2px 5px}
.amt .amt-table td.amt-unknown{background:#eef0f3;color:#707a85;font-size:12px}
.amt .amt-photo.amt-no-photo{height:auto;min-height:0;background:none;color:#87919b;font-size:11px;padding:2px}
.amt-options{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:10px 0;color:#65768a;font-size:12px}
.amt-cats{display:flex;flex-wrap:wrap;gap:6px}
.amt-cat{font-size:12px;padding:6px 10px}
.amt-cat[aria-pressed=true]{background:#dbe9f7;border-color:#5286b5;color:#1e4d73;font-weight:600}
.amt .amt-options label{display:flex;align-items:center;gap:7px;font-size:13px;margin:0}.amt-options input{width:auto}
.amt button.amt-base{font-size:11px;padding:5px 8px;margin-top:7px}.amt-base[aria-pressed=true]{background:#dbe9f7;border-color:#5286b5}
@media(max-width:600px){.amt-scroll{max-height:80vh}.amt .amt-table thead .amt-param,.amt .amt-table tbody th[scope=row]{width:130px;max-width:130px;font-size:11px;padding:7px}.amt .amt-table thead th{padding:10px}.amt .amt-photo{height:64px;margin:5px 0}.amt .amt-photo img{height:54px}.amt .amt-photo small{display:none}.amt-top{align-items:flex-start;flex-direction:column;gap:10px}}
.amt{color:var(--text,#24364a);font-size:14px}.amt-top{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:12px}.amt h2{font-size:23px;margin:0 0 7px}.amt-top p,.amt-legend{color:var(--muted,#65768a);margin:0;font-size:13px}.amt button:disabled{opacity:.45;cursor:not-allowed}.amt button{cursor:pointer;border:1px solid #bac9d9;border-radius:6px;background:#fff;color:#245980;padding:9px 14px;font:inherit}.amt-top>button{white-space:nowrap}.amt-legend{margin:10px 0 16px}.amt-scroll{width:100%;overflow:auto;border:1px solid #c9d4dd;border-radius:8px;background:#fff}.amt .amt-table{border-collapse:separate;table-layout:fixed;width:calc(220px + var(--amt-columns)*280px);min-width:780px;margin:0}.amt-table th,.amt-table td{border:1px solid #d6dfe7;padding:9px 13px;vertical-align:middle;white-space:normal!important;text-align:center;font-size:14px;line-height:1.35;color:#25374b}.amt-table thead th{width:280px;background:#f4f7fa;vertical-align:top;padding:16px}.amt-table thead .amt-param{width:220px;text-align:left;vertical-align:bottom;letter-spacing:.08em;font-size:11px;color:#6d7f91}.amt-table tbody th{font-weight:500;text-align:left;width:220px;background:#f8fafc}.amt-table .sierra-column{background:#f0f7f0}.amt-table thead .sierra-column{background:#eaf4e8;border-top:4px solid #539247}.amt-brand{font-size:20px;font-weight:700;margin-bottom:10px;color:#345f85;position:relative}.sierra-column .amt-brand{color:#32712b}.amt label{display:block;text-align:left;font-weight:500;font-size:11px;color:#65768a;letter-spacing:.03em}.amt select{display:block;width:100%;min-width:0;max-width:100%;font:500 14px system-ui;color:#22374c;background:#fff;border:1px solid #bdcbd8;border-radius:5px;padding:8px;margin:4px 0 9px}.amt-photo{height:132px;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:10px 0;border-radius:5px}.amt-photo img{width:100%;height:98px;object-fit:contain}.amt-photo small{font-size:10px;color:#87919b;margin-top:8px}.amt-photo>span{font-size:12px;color:#8996a3;font-weight:400}.amt-relation{font-size:11px;display:block;color:#7b8793;font-weight:400;line-height:1.5;margin-top:8px}.amt .amt-remove{position:absolute;right:0;top:-4px;padding:0 7px;font-size:20px;border:none;background:transparent;color:#7c8c9a}.amt .amt-section th{background:#eaf0f6;padding:8px 13px;font-size:10px;font-weight:700;letter-spacing:.12em;color:#5e7691}.amt-drawing{width:100%;height:220px;object-fit:contain;display:block;background:#fff}.amt a{color:#2d6391;text-decoration:none}.amt a:hover{text-decoration:underline}.amt-notes{font-size:12px;line-height:1.6;color:#758391;margin:12px 0}.amt-audit{margin-top:16px;font-size:12px;color:#6e7f90}.amt-audit summary{cursor:pointer}.amt-audit pre{max-height:400px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7fa;padding:12px}.amt .know-doc{display:block;font-size:12px;border:1px solid #cedbe6;border-left:3px solid #3279b7;border-radius:5px;padding:12px;background:#fff}.amt-table tbody tr:hover td{box-shadow:inset 0 0 0 9999px #e3edf41a}@media(max-width:600px){.amt-top{align-items:flex-start;flex-direction:column;gap:10px}.amt h2{font-size:20px}.amt-top p{line-height:1.5}.amt-table thead th{width:235px}.amt-table thead .amt-param,.amt-table tbody th{width:150px}.amt .amt-table{min-width:600px;width:calc(130px + var(--amt-columns)*235px)}.amt-legend:after{content:' Листайте таблицу вправо →';display:block;margin-top:7px;color:#2d6391}}

/* Compact matrix: fixed readable columns on desktop AND mobile. */
.amt .amt-table{--amt-col:150px;--amt-label:145px;width:calc(var(--amt-label) + var(--amt-columns)*var(--amt-col));min-width:0}
.amt .amt-table th,.amt .amt-table td{box-sizing:border-box;padding:7px 8px;font-size:14px;line-height:1.35;overflow-wrap:anywhere;word-break:normal;hyphens:auto}
.amt .amt-table thead th{width:var(--amt-col);padding:9px 8px}
.amt .amt-table thead .amt-param,.amt .amt-table tbody th[scope=row]{width:var(--amt-label);max-width:var(--amt-label);font-size:13px;padding:7px 8px;letter-spacing:normal}
.amt-table abbr{border:0;text-decoration:underline dotted #98a7b4;text-underline-offset:3px;cursor:help}
.amt .amt-brand{font-size:16px;padding-right:20px;margin-bottom:4px}
.amt-model-name{font-size:15px;font-weight:700;line-height:1.3;overflow-wrap:anywhere;hyphens:none;margin:3px 0 8px}
.amt select{font-size:14px;padding:7px 3px;margin:3px 0 7px;min-height:34px}
.amt .amt-photo{height:46px;margin:5px 0;background:transparent}
.amt .amt-photo a{display:block;width:100%;height:46px}
.amt .amt-photo img{width:100%;height:46px;object-fit:contain}
.amt .amt-drawing{width:100%;height:64px;object-fit:contain}
.amt .amt-relation{font-size:12px;line-height:1.3;margin-top:5px}
.amt button.amt-base{font-size:12px;padding:5px;margin-top:6px;max-width:100%}
.amt .amt-table td.amt-unknown{font-size:13px}
.amt .amt-diff-mark{font-size:12px;margin-left:3px;padding:0 3px}
.amt .amt-table .amt-section th{font-size:12px;letter-spacing:.04em;padding:7px 8px}
.amt .amt-table a:focus-visible,.amt-table abbr:focus-visible{outline:2px solid #3279b7;outline-offset:2px}
@media(max-width:600px){.amt .amt-table{--amt-label:120px;--amt-col:150px}.amt .amt-table thead .amt-param,.amt .amt-table tbody th[scope=row]{font-size:13px}.amt .amt-photo{height:46px}.amt .amt-photo img{height:46px}}

/* hover zoom layer (2026-09-12) */
.amt-zoom{position:fixed;z-index:9999;display:none;flex-direction:column;background:#fff;border:1px solid #9fb3c6;border-radius:8px;box-shadow:0 12px 40px #0004;padding:8px;pointer-events:none}.amt-zoom.on{display:flex}.amt-zoom img{width:100%;max-height:calc(100% - 22px);object-fit:contain;background:#fff}.amt-zoom small{display:block;margin-top:6px;font-size:11px;color:#65768a;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.amt .amt-table img{cursor:zoom-in}

/* Secondary media stays a thumbnail: no crop/stretch and no header blow-up. */
.amt-photo-more a{display:block;margin-top:6px}
.amt-photo-more img{display:block;width:100%!important;max-width:100%!important;height:82px!important;object-fit:contain!important;background:#fff}
@media(hover:none),(pointer:coarse){.amt .amt-table img{cursor:pointer}.amt-zoom{display:none!important}}

.amt .amt-table td.amt-ok{background:#dcf3e2;color:#1d5c32;box-shadow:inset 0 -2px #3aa35c}
.amt-ok-key{background:#dcf3e2;color:#1d5c32;padding:2px 5px}

/* 03.10.2026 владелец: шапка не просвечивает и не наезжает на строки при прокрутке */
.amt .amt-table thead th{background-color:#f4f7fa;background-clip:padding-box;box-shadow:0 2px 4px rgba(30,60,90,.18)}
.amt .amt-table thead th.sierra-column{background-color:#eaf4e8}
.amt .amt-table thead .amt-param{left:0;z-index:5;background:#f4f7fa}
