/* Свои стили MEDIA комбайна поверх общего style.css */
.stats-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.stats-head .ph1 { margin: 0 auto 0 0; }
.panel, .tiles, details.panel { margin-bottom: 16px; }
.page-help { margin: 0 0 16px; border: 1px solid var(--blue-line); border-radius: var(--radius); background: var(--blue-soft); }
.page-help > summary { cursor: pointer; list-style: none; padding: 10px 14px; font-weight: 600; color: var(--blue-ink); display: flex; align-items: center; gap: 10px; user-select: none; }
.page-help > summary::-webkit-details-marker { display: none; }
.page-help > summary::after { content: '▾'; margin-left: auto; }
.page-help[open] > summary::after { content: '▴'; }
.ph-ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font: italic 700 14px/1 Georgia, serif; }
.ph-body { padding: 0 16px 14px; }
.ph-body ul { margin: 0; padding-left: 18px; }
.att-list { display: grid; }
.att-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 20px; border-top: 1px solid var(--line-2); color: var(--ink); }
.att-row:first-child { border-top: 0; }
.att-row:hover { background: var(--u-hover); text-decoration: none; color: var(--ink); }
.att-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.att-row.att-err .att-dot { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.att-go { color: var(--blue-ink); font-weight: 600; font-size: 13px; white-space: nowrap; }
.att-text { overflow-wrap: anywhere; }
.app-menu { padding: 0 12px 10px; }
.set-tabs { display: flex; gap: 4px; padding: 3px; margin-bottom: 16px; width: max-content; max-width: 100%; flex-wrap: wrap; background: var(--u-fill); border: 1px solid var(--line); border-radius: 12px; }
.set-tabs a { padding: 7px 14px; border-radius: 9px; color: var(--soft); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.set-tabs a.on { background: var(--surface); color: var(--blue-ink); box-shadow: var(--u-shadow-sm); }
a.tile, a.tile:hover { color: var(--ink); text-decoration: none; }
a.tile:hover { border-color: var(--blue-mid); }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.file-list li:first-child { border-top: 0; }
.file-list li > span { min-width: 0; }
.previews { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.previews:empty { display: none; }
/* шахматный фон показывает прозрачность */
.preview { display: block; width: 140px; height: 140px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: repeating-conic-gradient(#8883 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips .btn { white-space: normal; text-align: left; }
.toggle-row { margin-bottom: 10px; }
.bar-fill[data-bar] { transition: width 1.5s ease; }
.bar-text.wrap { white-space: normal; overflow-wrap: anywhere; }
/* скрытые по формату блоки: у части из них свой display */
#sv-edit [data-field][hidden] { display: none; }
.form-msg { padding: 10px 14px; border-radius: var(--radius-s); border: 1px solid var(--red-line); background: var(--red-soft); color: var(--red-ink); font-weight: 600; overflow-wrap: anywhere; }
.dlg-body { padding: 18px 20px; }
dialog.dlg { width: min(560px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px #0006; }
dialog.dlg::backdrop { background: #0b122080; }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 400; display: flex; flex-direction: column; gap: 8px; max-width: min(440px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: var(--radius-s); border: 1px solid var(--green-line); background: var(--green-soft); color: var(--green-ink); box-shadow: 0 14px 40px #0003; font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.toast.bad { border-color: var(--red-line); background: var(--red-soft); color: var(--red-ink); }
@media (max-width: 719px) { #toasts { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 10px); } }
@media (max-width: 800px) { .att-row { padding: 11px 14px; } }
