/* КАТМАН для SPLAT. Рабочий инструмент: белые поверхности, нейтральный графит, фирменный красный только для действий и состояния. */
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;src:url(golos-text-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;src:url(golos-text-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;src:url(golos-text-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--bg:#f4f4f5;--surface:#fff;--sunken:#fafafb;--ink:#1d1d20;--ink-2:#45454c;--muted:#6b6b73;--line:#e3e3e7;--line-strong:#cdcdd4;--accent:#ba0c2e;--accent-hover:#9a0a26;--accent-soft:#fcedf0;--ok:#1f7a4d;--ok-soft:#e8f4ee;--warn:#8a5a0a;--warn-soft:#fdf3e1;--radius:10px;--radius-s:8px;--ring:0 0 0 3px rgba(186,12,46,.22);--side:240px}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font:14px/1.5 "Golos Text",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-hover);text-decoration:underline}
.btn:hover,.side-nav a:hover,.brand:hover,.file:hover,.list td a:hover,.split h2 a:hover{text-decoration:none}
h1{font-size:24px;line-height:1.25;font-weight:650;letter-spacing:-.01em;margin:0}
h2{font-size:16px;line-height:1.3;font-weight:650;margin:0 0 10px}
h3{font-size:14px;font-weight:650;margin:0 0 6px}
p{margin:0 0 10px}
p:last-child{margin-bottom:0}
img{max-width:100%}
.muted{color:var(--muted)}
.hidden{display:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
svg.icon{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Каркас: боковая панель с логотипом и разделами */
.shell{display:grid;grid-template-columns:var(--side) minmax(0,1fr);min-height:100vh}
.side{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:22px;padding:22px 16px 18px;background:var(--surface);border-right:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;padding:0 6px}
.brand:hover{color:var(--ink)}
.brand img{width:44px;height:44px;display:block;flex:none}
.brand-name{font-size:17px;font-weight:700;letter-spacing:.02em;line-height:1.15}
.brand-name small{display:block;font-size:11.5px;font-weight:400;letter-spacing:0;color:var(--muted);margin-top:3px}
.side-nav{display:flex;flex-direction:column;gap:2px}
.side-nav a{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:var(--radius-s);color:var(--ink-2);text-decoration:none;font-weight:500}
.side-nav a:hover{background:var(--bg);color:var(--ink)}
.side-nav a[aria-current=page]{background:var(--accent-soft);color:var(--accent);font-weight:600}
.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:12px;padding:14px 6px 0;border-top:1px solid var(--line);font-size:13px}
.agent-status{display:flex;align-items:center;gap:8px;margin:0;color:var(--muted)}
.agent-status::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--line-strong);flex:none}
.agent-status.is-online{color:var(--ok)}
.agent-status.is-online::before{background:var(--ok)}
.agent-status.is-offline{color:var(--warn)}
.agent-status.is-offline::before{background:#c98a1a}
.side-user{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.side-user span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.side-user .link{padding:4px 0;color:var(--ink-2)}
.side-user .link:hover{color:var(--accent)}
form.inline{display:inline}
.content{min-width:0;display:flex;flex-direction:column}
main{width:100%;max-width:1244px;margin:0;padding:28px 32px 36px;flex:1}
main.wide{max-width:none}
footer{padding:14px 32px 22px;color:var(--muted);font-size:12.5px;border-top:1px solid var(--line)}
.shell-guest{display:block}
.shell-guest main{max-width:none;padding:0 0 40px}
.guest-top{max-width:560px;margin:15vh auto 0;padding:0 24px}

/* Заголовок страницы */
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.page-head p{margin:4px 0 0;color:var(--muted)}
.title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.crumbs{font-size:13px;color:var(--muted);margin:0 0 6px}
.crumbs a{display:inline-block;padding:4px 0;color:var(--muted);text-decoration:none}
.crumbs a:hover{color:var(--accent)}
.head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

/* Кнопки */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:7px 14px;border:1px solid var(--accent);border-radius:var(--radius-s);background:var(--accent);color:#fff;font:inherit;font-weight:600;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.btn:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:#fff}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn-ghost{background:var(--surface);color:var(--ink);border-color:var(--line-strong)}
.btn-ghost:hover{background:var(--bg);border-color:#b4b4bd;color:var(--ink)}
.link{background:none;border:0;padding:0;font:inherit;color:var(--accent);cursor:pointer;text-align:left}
.link:hover{color:var(--accent-hover);text-decoration:underline}
.link.danger{color:var(--accent)}
.btn-text{color:var(--muted);text-decoration:none;font-weight:500;padding:7px 4px}
.btn-text:hover{color:var(--accent)}

/* Панели */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;margin:0 0 16px}
.card.narrow{max-width:520px}
.card.warn{background:var(--warn-soft);border-color:#ecd9b0}
details.card.warn ul{margin:0 0 10px;padding-left:18px}
details.card{padding:13px 22px}
.card.alert,.alert{background:var(--accent-soft);border:1px solid #f1c5cd;border-radius:var(--radius-s);padding:12px 16px;margin:0 0 16px;color:#7a0a20}
.card.alert h2{color:#7a0a20}
.empty{text-align:center;padding:44px 24px}
.empty p{max-width:520px;margin:0 auto 16px;color:var(--muted)}
.hint{color:var(--warn);font-size:13px}
.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.split{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.split h2{margin-bottom:4px}
.split h2 a{color:var(--ink);text-decoration:none}
.split h2 a:hover{color:var(--accent)}
/* Вся карточка примера открывает отчёт; кнопка остаётся поверх */
.split{position:relative}
.split h2 a::after{content:"";position:absolute;inset:0}
.split .btn,.split form{position:relative;z-index:1}
.split p{color:var(--muted)}
.tag{display:inline-block;font-size:12px;font-weight:600;color:var(--muted);background:var(--bg);border-radius:6px;padding:2px 8px;margin-bottom:8px}
summary{cursor:pointer;font-weight:600}
details.card>summary,.image-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none}
details.card>summary::-webkit-details-marker,.image-picker>summary::-webkit-details-marker{display:none}
details.card>summary::after,.image-picker>summary::after{content:"";width:8px;height:8px;flex:none;margin:0 4px 4px 0;border-right:1.7px solid var(--muted);border-bottom:1.7px solid var(--muted);transform:rotate(45deg);transition:transform .15s}
details.card[open]>summary::after,.image-picker[open]>summary::after{transform:rotate(-135deg);margin-bottom:-4px}
details.card>summary{margin:-4px 0;padding:4px 0}
details.card[open]>summary{margin-bottom:14px}

/* Таблицы */
.table-wrap{overflow-x:auto;padding:0}
table.list,table.findings{width:100%;border-collapse:collapse}
.list th,.list td,.findings th,.findings td{text-align:left;padding:11px 16px;border-bottom:1px solid var(--line);vertical-align:top}
.list thead th,.findings thead th{font-size:12.5px;font-weight:600;color:var(--muted);background:var(--sunken);white-space:nowrap}
.list tbody tr:last-child td,.findings tbody tr:last-child td{border-bottom:0}
.list tbody tr:hover td{background:var(--sunken)}
.list td a{display:block;color:var(--ink);text-decoration:none}
.list td a:hover b{color:var(--accent)}
.list .link{color:var(--ink);font-weight:500}
.list .link:hover{color:var(--accent)}
.list .link.danger{color:var(--accent)}
tr.revoked td{color:#a3a3ab}
.findings td:first-child{white-space:nowrap}
.list th.num,.list td.num{text-align:right}
.list .prod{display:flex;align-items:center;gap:10px}
.list .prod img{width:36px;height:36px;object-fit:contain;flex:none;border:1px solid var(--line);border-radius:6px;background:var(--surface)}
.list .prod .link small{display:block;font-size:12px;font-weight:400;color:var(--muted)}
.list tr.splat-row td:first-child{font-weight:650}
.list .share{display:flex;align-items:center;gap:10px}
.bar{display:block;width:120px;height:6px;border-radius:3px;background:var(--bg);overflow:hidden;flex:none}
.bar span{display:block;height:100%;border-radius:3px;background:#8a8a93}
.splat-row .bar span{background:var(--accent)}

/* Статусы */
.pill{display:inline-block;padding:2px 9px;border-radius:6px;font-size:12.5px;font-weight:600;background:var(--bg);color:var(--ink-2);white-space:nowrap}
.pill-done{background:var(--ok-soft);color:var(--ok)}
.pill-running,.pill-uploading{background:#eaf1fb;color:#24508f}
.pill-queued,.pill-review{background:var(--warn-soft);color:var(--warn)}
.pill-error{background:var(--accent-soft);color:var(--accent)}

/* Формы */
.form label,.field{display:block;font-size:12.5px;font-weight:600;color:var(--ink-2);margin:0 0 14px}
.field{margin:0;min-width:0}
.label{display:block;font-size:12.5px;font-weight:600;color:var(--ink-2)}
input[type=text],input:not([type]),input[type=password],input[type=date],input[type=number],input[type=search],select,textarea{display:block;width:100%;min-height:38px;margin-top:6px;padding:8px 11px;border:1px solid var(--line-strong);border-radius:var(--radius-s);background:var(--surface);color:var(--ink);font:inherit;font-weight:400;min-width:0;max-width:100%}
select{appearance:none;-webkit-appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b6b73' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center}
textarea{min-height:96px;resize:vertical}
input::placeholder,textarea::placeholder{color:#74747c;opacity:1}
input:hover,select:hover,textarea:hover{border-color:#b0b0b9}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--accent);box-shadow:var(--ring)}
input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:16px;height:16px;margin:0;flex:none}
.form .check,.check{display:flex;align-items:center;gap:8px;font-weight:400;font-size:14px;color:var(--ink);margin:0}
.form>label.check{margin-bottom:14px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
.grid2>.card{margin:0 0 16px}
.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 14px}
.form-note{font-size:13px;color:var(--muted);margin:0 0 14px}
.form-section{padding-top:18px;margin-top:6px;border-top:1px solid var(--line)}
.form-section:first-of-type{border-top:0;padding-top:0;margin-top:0}
.note-top{margin:12px 0 0}
.files+.form-note{margin:12px 0 0}
.form .actions{margin-top:4px}

/* Панель фильтров */
.toolbar{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;margin:0 0 14px}
.toolbar .field-search{flex:1 1 260px}
.toolbar .field-select{flex:0 1 240px}
.toolbar-actions{display:flex;align-items:center;gap:6px}
.input-icon{position:relative;display:block}
.input-icon svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);margin-top:3px;color:var(--muted);pointer-events:none}
.input-icon input{padding-left:36px}
fieldset.field{border:0;padding:0}
fieldset.field legend{padding:0}
.seg{display:inline-flex;margin-top:6px;border:1px solid var(--line-strong);border-radius:var(--radius-s);background:var(--surface);overflow:hidden}
.seg label{position:relative;margin:0;font-weight:500;font-size:14px;color:var(--ink-2);cursor:pointer}
.seg label+label{border-left:1px solid var(--line-strong)}
.seg input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}
.seg span{display:flex;align-items:center;min-height:36px;padding:0 14px}
.seg label:hover span{background:var(--bg)}
.seg input:checked+span{background:var(--accent-soft);color:var(--accent);font-weight:600}
.seg input:focus-visible+span{box-shadow:inset 0 0 0 2px var(--accent)}
.result-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px;color:var(--muted);font-size:13px}
.result-bar b{color:var(--ink);font-weight:600}
.pager{display:flex;align-items:center;gap:8px}
.pager .btn{min-height:32px;padding:4px 10px}
.pager .btn[aria-disabled=true]{color:#b0b0b8;border-color:var(--line);background:var(--surface);cursor:default;pointer-events:none}
.pager-end{justify-content:center;margin-top:20px}
.report-filters{padding:16px 18px}
.report-filters .filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 14px}
.report-filters .filter-grid label{margin:0}
.report-filters .more-filters{margin-top:12px}
.report-filters .more-filters>summary{display:none}
.report-filters .more-filters .check{margin:12px 0 0}
.report-filters .filter-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.report-filters #scope-note{font-size:12.5px;margin:0}
#filter-error:empty{display:none}

/* Показатели */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin:0 0 16px;overflow:hidden}
.stat{padding:14px 18px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);margin:0 -1px -1px 0}
.stat span{display:block;font-size:12.5px;color:var(--muted)}
.stat b{display:block;font-size:22px;line-height:1.3;font-weight:650;color:var(--ink);margin-top:2px}
.stat em{display:block;font-style:normal;font-size:12.5px;color:var(--muted)}
.footnote{font-size:12.5px;color:var(--muted);margin:0 0 4px}
.section-title{margin:22px 0 10px}

/* Отчёт: вкладки, карта, реестр */
.report-tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin:22px 0 16px;flex-wrap:wrap}
.report-tabs button{border:0;background:transparent;padding:9px 0;margin-bottom:-1px;font:inherit;font-weight:500;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent}
.report-tabs button:hover{color:var(--ink)}
.report-tabs button[aria-selected=true]{border-bottom-color:var(--accent);color:var(--ink);font-weight:600}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.panel-head h2{margin:0}
.panel-head p{margin:0;font-size:12.5px}
.price-map{overflow:auto;max-height:820px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);margin-bottom:16px}
.map-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%}
.map-table th,.map-table td{padding:12px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);vertical-align:top}
.map-table thead th{position:sticky;top:0;z-index:2;min-width:206px;background:var(--sunken);color:var(--ink);font-size:13px;font-weight:600;text-align:left;white-space:nowrap;border-bottom-color:var(--line-strong)}
.map-table thead th.tier-empty{min-width:92px;color:var(--muted);font-weight:500}
.map-table thead th:first-child{left:0;z-index:3;white-space:normal;min-width:0}
.map-table tbody th{position:sticky;left:0;z-index:1;width:168px;max-width:168px;background:var(--surface);text-align:left;font-weight:400}
.map-table tbody th strong{display:block;font-weight:650}
.map-table tbody th small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.map-cell{display:grid;grid-template-columns:repeat(2,150px);gap:8px;min-height:40px;align-content:start}
.map-cell.tier-empty{display:block;min-height:0}
.map-cell>.muted{font-size:12.5px}
.cell-count,.more-products{grid-column:1 / -1}
.cell-count{font-size:12px;color:var(--muted)}
.more-products summary{display:flex;align-items:center;gap:8px;list-style:none;color:var(--accent);font-size:13px;font-weight:500;padding:4px 0}
.more-products summary::-webkit-details-marker{display:none}
.more-products summary::after{content:"";width:6px;height:6px;margin-bottom:3px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg)}
.more-products[open] summary::after{transform:rotate(-135deg);margin-bottom:-3px}
.more-products>.map-cell{margin-top:8px}
.map-product{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:150px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-s);padding:8px;text-align:left;font:inherit;font-size:12.5px;line-height:1.35;color:var(--ink);cursor:pointer;transition:border-color .15s,box-shadow .15s}
.map-product:hover{border-color:var(--line-strong);box-shadow:0 2px 8px rgba(29,29,32,.08)}
.map-product img{width:100%;height:104px;object-fit:contain;background:var(--surface);border-radius:4px;margin-bottom:3px}
.map-product strong{font-weight:650}
.map-product span{overflow-wrap:anywhere;color:var(--ink-2)}
.map-product b{font-size:14px;font-weight:650;color:var(--ink);margin-top:2px}
.map-product small{font-size:11.5px;color:var(--muted)}
.splat-product::after{content:"SPLAT";position:absolute;top:6px;right:6px;font-size:10px;font-weight:700;letter-spacing:.04em;color:#fff;background:var(--accent);border-radius:4px;padding:1px 5px}
#panel-registry table{min-width:750px}
#registry td:nth-child(2),#registry td:nth-child(3){white-space:nowrap}
#panel-brands table{min-width:680px}
#insights p{margin:0;padding:10px 0;border-top:1px solid var(--line)}
#insights p:first-child{border-top:0;padding-top:0}
#insights p:last-child{padding-bottom:0}
#market-context .table-wrap{margin-bottom:12px}
.narrow-only{display:none}
.recommendation{border-top:1px solid var(--line);padding:12px 0}
.recommendation h3{font-size:14px}
.recommendation p{margin:0 0 4px}
#report-state:empty{display:none}
#product-dialog{width:min(820px,calc(100% - 24px));max-height:90vh;overflow:auto;border:0;border-radius:14px;padding:22px 24px;color:var(--ink);box-shadow:0 18px 50px rgba(29,29,32,.25)}
#product-dialog::backdrop{background:rgba(29,29,32,.55)}
#product-dialog h2{max-width:620px;font-size:18px;margin:0}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.detail-images{display:flex;gap:16px;margin:18px 0;flex-wrap:wrap}
.detail-images figure{flex:1;min-width:190px;margin:0}
.detail-images a{display:block}
.detail-images img{width:100%;height:260px;object-fit:contain;background:var(--sunken);border:1px solid var(--line);border-radius:var(--radius-s)}
.detail-images figcaption{font-size:12.5px;color:var(--muted);margin-top:6px}
.detail-facts{display:grid;grid-template-columns:170px 1fr;gap:8px 14px;margin:0 0 14px}
.detail-facts dt{color:var(--muted)}
.detail-facts dd{margin:0;overflow-wrap:anywhere}

/* Каталог */
.image-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.library-item{display:flex;flex-direction:column;margin:0;min-width:0;padding:0;overflow:hidden}
.library-item .shot{display:flex;align-items:center;justify-content:center;height:190px;padding:14px;background:var(--surface);border-bottom:1px solid var(--line)}
.library-item .shot img{width:100%;height:100%;object-fit:contain}
.library-item .shot.no-photo{height:112px;background:var(--sunken);color:var(--muted);flex-direction:column;gap:6px;font-size:12.5px}
.library-item .shot.no-photo svg{width:28px;height:28px;stroke-width:1.4}
.library-item .body{display:flex;flex-direction:column;gap:6px;padding:12px 14px 14px;flex:1}
.library-item h2{font-size:14px;font-weight:600;line-height:1.35;margin:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.library-item p{font-size:12.5px;color:var(--muted);margin:0;overflow-wrap:anywhere}
.library-item .source{display:inline-flex;align-items:center;gap:5px;margin-top:auto;padding-top:4px;font-size:12.5px;color:var(--ink-2);text-decoration:none}
.library-item .source:hover{color:var(--accent);text-decoration:underline}
.library-item .source svg{width:13px;height:13px}
.library-item .note{font-size:12px;color:var(--warn)}
.image-library>.empty{grid-column:1 / -1}

/* Страница отчёта: файлы, прогресс, слайды */
.progress{position:relative;height:8px;background:var(--bg);border-radius:99px;overflow:hidden;margin:12px 0}
.progress>div{height:100%;width:5%;background:var(--accent);border-radius:99px}
.progress span{display:block;font-size:12.5px;color:var(--muted);margin-top:6px}
#upbar{height:auto;background:none;overflow:visible}
#upbar>div{height:8px}
.files{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;margin-top:14px}
.file{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:var(--radius-s);padding:11px 14px;text-decoration:none;color:var(--ink);min-width:0}
.file svg{color:var(--muted);margin-top:2px}
.file:hover svg{color:var(--accent)}
.file-text{display:block;min-width:0}
.file:hover{border-color:var(--line-strong);background:var(--sunken);color:var(--ink)}
.file b{font-weight:600}
.file-text span{display:block;font-size:12.5px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-text b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.previews{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.previews img{width:100%;border:1px solid var(--line);border-radius:6px;display:block}

/* Новый отчёт */
.form-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
.tips ul,.prose ol,.prose ul{padding-left:18px;margin:0}
.tips li,.prose li{margin:0 0 8px}
.tips{font-size:13px;color:var(--ink-2)}
.drop{position:relative;border:1.5px dashed var(--line-strong);background:var(--sunken);border-radius:var(--radius);padding:26px;text-align:center;margin:0 0 14px;color:var(--ink-2)}
.drop:hover,.drop.over{border-color:var(--accent);background:var(--accent-soft)}
.drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;min-height:0;margin:0}
.drop svg{width:26px;height:26px;color:var(--muted);margin-bottom:6px}
.drop p{margin:0}
.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.thumb{border:1px solid var(--line);border-radius:var(--radius-s);overflow:hidden;background:var(--surface);font-size:12.5px}
.thumb img{display:block;width:100%;height:120px;object-fit:cover;background:var(--bg)}
.thumb>div{padding:6px 8px}
.thumb .bad{color:var(--accent);font-weight:600}
.thumb label{display:flex;gap:6px;align-items:center;font-weight:400;margin:4px 0 0}

/* Проверка распознавания */
.review-card{display:grid;grid-template-columns:210px minmax(0,1fr);gap:22px;scroll-margin-top:16px}
.review-photo img{display:block;width:100%;height:250px;object-fit:contain;background:var(--sunken);border:1px solid var(--line);border-radius:var(--radius-s);margin-bottom:10px}
.review-photo p{overflow-wrap:anywhere;font-size:12.5px;margin-top:8px}
.catalog-results{max-height:280px;overflow:auto;margin:-6px 0 12px}
.catalog-option{display:block;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-top:0;padding:9px 11px;cursor:pointer;font:inherit}
.catalog-option:first-child{border-top:1px solid var(--line);border-radius:var(--radius-s) var(--radius-s) 0 0}
.catalog-option:hover{background:var(--accent-soft)}
.image-picker{margin:0 0 16px;padding:0 14px;background:var(--sunken);border:1px solid var(--line);border-radius:var(--radius-s)}
.image-picker>summary{margin:0 -14px;padding:12px 14px}
.image-picker[open]{padding-bottom:14px}
.image-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;max-height:340px;overflow:auto;margin-bottom:10px}
.image-option{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-s);padding:8px;cursor:pointer;font:inherit;font-size:12.5px;text-align:left}
.image-option:hover{border-color:var(--accent)}
.image-option img{height:130px;width:100%;object-fit:contain}
.image-option span{display:block;overflow-wrap:anywhere}
.selected-packshot{width:170px;height:140px;object-fit:contain;display:block;margin:10px 0}
.selected-packshot.hidden{display:none}

/* Инструкция, доступы, вход */
.prose{max-width:760px;font-size:14.5px;line-height:1.6}
.prose h2{margin-top:22px}
.prose h2:first-child{margin-top:0}
.prose p{color:var(--ink-2)}
.copy{display:flex;gap:10px;margin:14px 0}
.copy input{flex:1;margin:0}
.welcome{max-width:560px;margin:28px auto 0;padding:0 24px}
.welcome h1{font-size:28px;margin-bottom:10px}
.welcome .lead{font-size:15px;color:var(--ink-2);margin-bottom:22px}

@media(max-width:1100px){.form-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:860px){
 .shell{display:block}
 .side{position:static;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:12px 14px;border-right:0;border-bottom:1px solid var(--line)}
 .brand img{width:36px;height:36px}
 .brand-name small{display:none}
 .side-nav{flex-direction:row;order:3;width:calc(100% + 14px);margin:0 -7px;overflow-x:auto;gap:2px;padding-bottom:2px}
 .side-nav a{white-space:nowrap;padding:8px 7px;font-size:13px}
 .side-nav svg{display:none}
 .side-foot{margin:0 0 0 auto;padding:0;border:0;flex-direction:row;align-items:center;gap:12px}
 .side-user span{display:none}
 main{padding:18px 14px 28px}
 footer{padding:12px 14px 18px}
 .grid2{grid-template-columns:1fr}
 .grid4{grid-template-columns:1fr 1fr}
 .report-filters .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .map-cell{grid-template-columns:150px}
 .map-table th,.map-table td{padding:8px}
 .map-table thead th{min-width:166px}
 .map-table tbody th{width:118px;max-width:118px}
 .detail-facts{grid-template-columns:1fr;gap:2px}
 .detail-facts dd{margin-bottom:8px}
 #product-dialog{padding:16px}
 .review-card{grid-template-columns:minmax(0,1fr)}
 .review-photo img{height:180px}
 .card{padding:16px}
 .image-library{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .library-item .shot{height:150px}
 .list th,.list td,.findings th,.findings td{padding:10px 12px}
 .toolbar .field-select{flex:1 1 100%}
 .narrow-only{display:block}
 .report-filters .more-filters>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;list-style:none}
 .report-filters .more-filters>summary::-webkit-details-marker{display:none}
 .report-filters .more-filters>summary::after{content:"";width:8px;height:8px;margin:0 4px 4px 0;border-right:1.7px solid var(--muted);border-bottom:1.7px solid var(--muted);transform:rotate(45deg)}
 .report-filters .more-filters[open]>summary::after{transform:rotate(-135deg);margin-bottom:-4px}
 .report-filters .more-filters{margin-top:6px;border-top:1px solid var(--line)}
 .toolbar fieldset.field,.toolbar-actions{flex:1 1 100%}
 .seg{display:flex}
 .seg label{flex:1}
 .seg span{justify-content:center}
 .toolbar-actions .btn{flex:1}
 .bar{width:64px}
 /* На телефоне цели касания не ниже 40-44 px */
 .btn,.pager .btn{min-height:44px}
 input[type=text],input:not([type]),input[type=password],input[type=date],input[type=number],input[type=search],select{min-height:44px}
 .side-nav a{min-height:44px}
 .seg span{min-height:42px}
 .report-tabs button{padding:12px 0}
 .split .btn{width:100%}
 .side-user .link,.filter-foot .link,.btn-text{min-height:44px;display:inline-flex;align-items:center}
 .check{min-height:44px}
 .library-item .source{min-height:32px}
 .crumbs a{display:inline-block;padding:8px 0}
 details.card>summary,.image-picker>summary{min-height:44px}
 .stats{grid-template-columns:1fr 1fr}
 .stat{padding:12px 14px}
 .stat:last-child:nth-child(odd){grid-column:1 / -1;display:grid;grid-template-columns:1fr auto;align-items:baseline;column-gap:12px}
 .stat:last-child:nth-child(odd) b{margin:0}
 .stat:last-child:nth-child(odd) em{grid-column:1 / -1}
 .list .link{padding:6px 0}
}
@media(max-width:420px){.agent-status{font-size:0;gap:0}.agent-status::before{width:10px;height:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
