/* Свои стили Insta комбайна поверх общего style.css */
/* подсказки страницы (как в tg_parser) */
.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; }
.ph-body li { margin: 4px 0; }
/* требует внимания */
.att-list { display: grid; }
.att-row { display: grid; grid-template-columns: 14px 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; }
/* вкладки настроек и периодов */
.set-tabs, .period-tabs { display: flex; gap: 4px; padding: 3px; background: var(--u-fill); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.set-tabs { margin-bottom: 16px; width: max-content; max-width: 100%; flex-wrap: wrap; }
.set-tabs a, .period-tabs a { padding: 7px 14px; border-radius: 9px; color: var(--soft); font-weight: 600; font-size: 13.5px; white-space: nowrap; text-decoration: none; }
.set-tabs a.on, .period-tabs a.on { background: var(--surface); color: var(--blue-ink); box-shadow: var(--u-shadow-sm); }
.stats-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; }
.stats-head .ph1 { margin: 0 auto 0 0; }

/* ---------- общее ---------- */
.mono, textarea.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.btn .icon { width: 17px; height: 17px; }
.pad { padding: 14px 20px; margin: 0; }
.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; }
.side-new { padding: 0 12px 10px; }
.appbar-search { position: relative; display: flex; align-items: center; }
.appbar-search input { width: 100%; padding-left: 34px; padding-right: 34px; }
.appbar-search .s-ico { position: absolute; left: 10px; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.appbar-search .s-ico .icon { width: 16px; height: 16px; }
.appbar-search kbd { position: absolute; right: 9px; font: 11px var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; background: var(--surface-2); pointer-events: none; }
.appbar-search input:focus + kbd { display: none; }
.side-search { margin: 4px 12px 10px; }
a.tg-state:hover { text-decoration: none; }
.tg-state span:last-child { overflow: hidden; text-overflow: ellipsis; }
a.tile:hover { text-decoration: none; color: var(--ink); border-color: var(--blue-mid); }
a.tile { color: var(--ink); }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.note ul { margin: 6px 0 0; padding-left: 18px; }
.more > summary { color: var(--blue-ink); font-weight: 650; font-size: 14px; }
.more[open] > summary { margin-bottom: 12px; }
.danger-zone { padding-top: 12px; border-top: 1px solid var(--u-line-2); }
.api-doc pre { overflow-x: auto; padding: 12px; margin: 0; border-radius: var(--radius-s); background: var(--u-fill); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; }
.token { font-size: 15px; user-select: all; }
.device-code { font: 700 22px ui-monospace, Menlo, monospace; letter-spacing: .12em; user-select: all; }
.logo-full { display: block; width: 56px; height: 56px; margin-bottom: 14px; filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--blue) 30%, transparent)); }
#toasts, .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); }
dialog.dlg { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); 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: color-mix(in srgb, #0b1220 55%, transparent); backdrop-filter: blur(2px); }


/* ---------- лента ---------- */
.nav-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.row-item.found > input { margin-top: 3px; }
.empty { padding: 28px 20px; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.filters select, .filters input[type=search] { min-height: 38px; padding-top: 6px; padding-bottom: 6px; font-size: 13.5px; }
.filters input[type=search] { flex: 1 1 180px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.reel { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); min-width: 0; }
.reel:hover { text-decoration: none; color: var(--ink); border-color: var(--blue-mid); }
.cover { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--blue-soft), var(--surface-2)); display: grid; place-items: center; padding: 14px; overflow: hidden; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .quote { font-size: 13px; color: var(--soft); text-align: center; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cover .badge { position: absolute; z-index: 1; top: 8px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface); border: 1px solid var(--line); }
.cover .badge.x { left: 8px; }
.cover .badge.k { right: 8px; font-weight: 600; color: var(--muted); }
.badge.hot { background: var(--green); border-color: var(--green); color: #fff; }
.badge.warm { background: var(--orange-soft); border-color: var(--orange-line); color: var(--orange-ink); }
.reel .meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.reel .meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel .meta .tag { align-self: flex-start; margin: 2px 0 0; }
.nums { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--muted); }
.more-row { display: flex; justify-content: center; margin-top: 18px; }
.media-page { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.media-page .cover { border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 14px; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.dl { margin: 0; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; }
.dl dt { color: var(--muted); font-weight: 600; font-size: 13px; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.rows { display: grid; }
.row-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 20px; border-top: 1px solid var(--line-2); }
.row-item:first-child { border-top: 0; }
.row-item .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row-item .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 800px) { .media-page { grid-template-columns: minmax(0, 1fr); } .media-page .cover { max-width: 280px; } .dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .dl dd { margin-bottom: 8px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .row-item { flex-direction: column; } }
