/* Общая раскладка инструментов */
.tool { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.tool > * { min-width: 0; }
@media (max-width: 960px) { .tool { grid-template-columns: 1fr; } }

.tool__step { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tool__step-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; box-shadow: var(--raised-sm); font-weight: 800; color: var(--accent); flex: none; }
.tool__step h2 { font-size: 1.15rem; margin: 0; }

.tool .panel + .panel { margin-top: var(--gap); }
.tool__summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 14px 0 0; color: var(--muted); font-size: .9rem; }

.thumbs { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.thumb { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; box-shadow: var(--raised-sm); text-decoration: none; color: var(--text); }
.thumb:hover { color: var(--accent); }
.thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; border-radius: 8px; background: #fff; }
.thumb--square img { aspect-ratio: 1; background: repeating-conic-gradient(#d9dee6 0 25%, #f3f5f8 0 50%) 0 0 / 16px 16px; }
.thumb span { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb small { color: var(--muted); font-size: .75rem; }

.empty { color: var(--muted); text-align: center; padding: 28px 12px; margin: 0; }

.how { counter-reset: how; list-style: none; padding: 0; display: grid; gap: 14px; }
.how li { counter-increment: how; display: flex; gap: 14px; align-items: flex-start; }
.how li::before { content: counter(how); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; box-shadow: var(--inset-sm); font-weight: 700; color: var(--accent); }

/* Отчёт проверки CSS */
.report { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.report__item { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px 16px; border-radius: 14px; box-shadow: var(--raised-sm); border-left: 4px solid var(--muted); }
.report__item--error { border-left-color: var(--danger); }
.report__item--warning { border-left-color: var(--warning); }
.report__item--ok { border-left-color: var(--success); }
.report__line { font-family: var(--mono); font-size: .85rem; color: var(--muted); white-space: nowrap; }
.report__text { font-weight: 600; }
.report__hint { grid-column: 2; color: var(--muted); font-size: .9rem; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.stat { padding: 10px 16px; border-radius: 12px; box-shadow: var(--inset-sm); font-weight: 700; }
.stat--error { color: var(--danger); }
.stat--warning { color: var(--warning); }
.stat--ok { color: var(--success); }
.dropzone--compact { min-height: 96px; padding: 16px; }
.report + .btn-row { margin-top: 18px; }
