/* Карточка торга (auction-card). Цвета — от фирменного синего темы (--primary). */
.ac-root {
    --ac-accent: var(--primary, #006196);
    --ac-accent-soft: #e6f0f5;
    --ac-ink: #313a46;
    --ac-muted: #6c757d;
    --ac-faint: #98a6ad;
    --ac-line: #eef0f3;
    --ac-border: #dee2e6;
    --ac-ok: #0a7a3e; --ac-ok-bg: #e5f4ec;
    --ac-bad: #b42318; --ac-bad-bg: #fdecea;
    --ac-warn: #8a5a00; --ac-warn-bg: #fff4d6;
    --ac-info-bg: #e6f0f5;
    color: var(--ac-ink);
}
.ac-root .card { border-radius: 12px; }
.ac-root .ac-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--ac-accent); font-weight: 600; cursor: pointer; text-decoration: none; }
.ac-root .ac-link:hover { text-decoration: underline; }
.ac-root .ac-text { white-space: pre-line; overflow-wrap: anywhere; }
.ac-root .ac-count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 10px; background: #eef2f5; color: var(--ac-muted); font-size: 12px; font-weight: 700; text-align: center; }

/* ── шапка ───────────────────────────────────────────────────────────── */
.ac-root .ac-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ac-root .ac-number { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; padding: 3px 10px; background: var(--ac-accent); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.ac-root .ac-number .mdi { opacity: .75; font-size: 13px; }
.ac-root .ac-dir { display: inline-flex; align-items: center; gap: 2px; border-radius: 8px; padding: 3px 9px; font-size: 12px; font-weight: 700; }
.ac-root .ac-dir-up { background: var(--ac-ok-bg); color: var(--ac-ok); }
.ac-root .ac-dir-down { background: var(--ac-accent-soft); color: var(--ac-accent); }
.ac-root .ac-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 700; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ac-root .ac-tone-info { background: var(--ac-info-bg); color: var(--ac-accent); }
.ac-root .ac-tone-wait { background: var(--ac-warn-bg); color: var(--ac-warn); }
.ac-root .ac-tone-live { background: var(--ac-ok-bg); color: var(--ac-ok); }
.ac-root .ac-tone-ok { background: var(--ac-ok-bg); color: var(--ac-ok); }
.ac-root .ac-tone-bad { background: var(--ac-bad-bg); color: var(--ac-bad); }
.ac-root .ac-tone-off { background: #f0f1f3; color: var(--ac-muted); }
.ac-root .ac-pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: ac-pulse 1.4s infinite; }
@keyframes ac-pulse { 0% { box-shadow: 0 0 0 0 rgba(10, 122, 62, .5); } 70% { box-shadow: 0 0 0 7px rgba(10, 122, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 122, 62, 0); } }
.ac-root .ac-counters { display: inline-flex; gap: 12px; margin-left: auto; color: var(--ac-muted); font-size: 13px; font-weight: 600; }
.ac-root .ac-counters > span { display: inline-flex; align-items: center; gap: 4px; }
.ac-root .ac-type { margin-top: 10px; color: var(--ac-muted); font-size: 13px; font-weight: 600; }
.ac-root .ac-title-wrap { margin: 4px 0 14px; }
.ac-root .ac-title { font-size: 16px; line-height: 1.3; font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ac-root .ac-title.is-open { -webkit-line-clamp: unset; display: block; }

.ac-root .ac-keybar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #f6f8fa; }
.ac-root .ac-key { flex: 1 1 200px; }
.ac-root .ac-key-date { flex: 0 1 auto; padding-left: 16px; border-left: 1px solid var(--ac-border); }
.ac-root .ac-key-label { color: var(--ac-muted); font-size: 12px; font-weight: 600; }
.ac-root .ac-key-price { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--ac-accent); font-variant-numeric: tabular-nums; line-height: 1.2; }
.ac-root .ac-key-unit { font-size: 16px; margin: 0 4px; }
.ac-root .ac-key-value { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; margin-top: 3px; white-space: nowrap; }
.ac-root .ac-key-value .mdi { color: var(--ac-faint); }

.ac-root .ac-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 16px; margin-top: 14px; }
.ac-root .ac-fact { display: flex; gap: 10px; align-items: flex-start; }
.ac-root .ac-fact-icon { font-size: 18px; color: var(--ac-faint); line-height: 1.2; }
.ac-root .ac-fact-label { color: var(--ac-muted); font-size: 12px; }
.ac-root .ac-fact-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.ac-root .ac-fact.is-accent .ac-fact-icon, .ac-root .ac-fact.is-accent .ac-fact-value { color: var(--ac-ok); }
.ac-root .ac-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-weight: 600; }
.ac-root .ac-note .mdi { color: var(--ac-accent); font-size: 17px; line-height: 1.2; }

.ac-root .ac-notices { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.ac-root .ac-notice { display: flex; gap: 8px; align-items: flex-start; border-radius: 8px; padding: 7px 10px; font-size: 13px; line-height: 1.35; }
.ac-root .ac-notice .mdi { font-size: 16px; line-height: 1.1; }
.ac-root .ac-notice.is-info { background: var(--ac-info-bg); }
.ac-root .ac-notice.is-info .mdi { color: var(--ac-accent); }
.ac-root .ac-notice.is-warn { background: var(--ac-warn-bg); }
.ac-root .ac-notice.is-warn .mdi { color: var(--ac-warn); }
.ac-root .ac-notice.is-bad { background: var(--ac-bad-bg); }
.ac-root .ac-notice.is-bad .mdi, .ac-root .ac-notice.is-bad b { color: var(--ac-bad); }
.ac-root .ac-notice.is-action { background: #fff; border: 1px solid #f2c94c; font-weight: 600; }
.ac-root .ac-notice.is-action .mdi { color: #d39b00; }
.ac-root .ac-notice a { font-weight: 700; color: var(--ac-accent); }

.ac-root .ac-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ac-root .ac-actions .btn { border-radius: 8px; font-weight: 600; }

/* ── галерея ─────────────────────────────────────────────────────────── */
.ac-root .ac-gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #eef1f4; cursor: zoom-in; }
.ac-root .ac-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-root .ac-gallery-empty { display: flex; align-items: center; justify-content: center; color: var(--ac-faint); font-size: 48px; cursor: default; }
.ac-root .ac-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ac-ink); font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.ac-root .ac-nav-prev { left: 10px; }
.ac-root .ac-nav-next { right: 10px; }
.ac-root .ac-counter { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600; }
.ac-root .ac-zoom { position: absolute; left: 10px; bottom: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.ac-root .ac-gallery-main:hover .ac-zoom { opacity: 1; }
.ac-root .ac-thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; }
.ac-root .ac-thumb { flex: none; width: 56px; height: 42px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #eef1f4; cursor: pointer; opacity: .75; }
.ac-root .ac-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-root .ac-thumb.is-active { border-color: var(--ac-accent); opacity: 1; }
.ac-root .ac-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 14, 20, .92); display: flex; align-items: center; justify-content: center; }
.ac-root .ac-lightbox .ac-lb-img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px; }
.ac-root .ac-img-broken { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #eef1f4; color: var(--ac-faint); font-size: 40px; }
.ac-root .ac-thumb .ac-img-broken { font-size: 18px; }
.ac-root .ac-lightbox .ac-img-broken { width: 60vw; height: 60vh; border-radius: 6px; }
.ac-root .ac-lb-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 24px; cursor: pointer; }

/* ── разделы ─────────────────────────────────────────────────────────── */
.ac-root .ac-section-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 14px; }
.ac-root .ac-section-head > .mdi { color: var(--ac-accent); font-size: 20px; }
.ac-root .ac-dl-row { display: grid; grid-template-columns: 220px 1fr; gap: 6px 20px; padding: 12px 0; border-top: 1px solid var(--ac-line); }
.ac-root .ac-dl-row:first-child { border-top: 0; padding-top: 0; }
.ac-root .ac-dl-label { display: flex; gap: 6px; align-items: flex-start; color: var(--ac-muted); font-weight: 600; font-size: 13px; }
.ac-root .ac-dl-label .mdi { font-size: 16px; color: var(--ac-faint); line-height: 1.2; }
.ac-root .ac-dl-value { font-weight: 600; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
@media (max-width: 767px) { .ac-root .ac-dl-row { grid-template-columns: 1fr; } }

.ac-root .ac-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ac-root .ac-files.is-compact { grid-template-columns: 1fr; }
.ac-root .ac-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--ac-border); border-radius: 10px; color: var(--ac-ink); text-decoration: none; min-width: 0; }
.ac-root .ac-file:hover { border-color: var(--ac-accent); background: #f7fafc; }
.ac-root .ac-file-ext { flex: none; min-width: 42px; padding: 3px 6px; border-radius: 6px; background: #5f7181; color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; text-align: center; }
.ac-root .ac-ext-pdf { background: #c0392b; }
.ac-root .ac-ext-doc, .ac-root .ac-ext-docx { background: #2b579a; }
.ac-root .ac-ext-xls, .ac-root .ac-ext-xlsx { background: #217346; }
.ac-root .ac-ext-jpg, .ac-root .ac-ext-jpeg, .ac-root .ac-ext-png { background: #8e44ad; }
.ac-root .ac-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13px; }
.ac-root .ac-file-dl { color: var(--ac-faint); font-size: 18px; }

.ac-root .ac-table th { border-top: 0; color: var(--ac-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.ac-root .ac-table td { vertical-align: middle; }
.ac-root .ac-need { color: var(--ac-bad); font-size: 12px; font-weight: 600; }
.ac-root .ac-eye { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ac-accent); color: #fff; font-size: 16px; }
.ac-root .ac-eye.is-muted { background: #adb5bd; }

.ac-root .ac-banner { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 12px 16px; margin-bottom: 24px; font-weight: 600; }
.ac-root .ac-banner .mdi { font-size: 20px; }
.ac-root .ac-banner-text { flex: 1; }
.ac-root .ac-banner.is-ok { background: var(--ac-ok-bg); color: var(--ac-ok); }
.ac-root .ac-banner.is-bad { background: var(--ac-bad-bg); color: var(--ac-bad); }
.ac-root .ac-banner.is-warn { background: var(--ac-warn-bg); color: var(--ac-warn); }
.ac-root .ac-banner.is-info { background: var(--ac-info-bg); color: var(--ac-accent); }
.ac-root .ac-progress-line { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.ac-root .ac-progress { flex: 1 1 200px; height: 8px; border-radius: 4px; background: #eef1f4; overflow: hidden; }
.ac-root .ac-progress i { display: block; height: 100%; background: var(--ac-accent); border-radius: 4px; }
.ac-root .ac-vote-app { border: 1px solid var(--ac-border); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.ac-root .ac-vote-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 700; margin-bottom: 8px; }
.ac-root .ac-vote-head a { color: var(--ac-accent); }
.ac-root .ac-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.ac-root .ac-chip { border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 700; }
.ac-root .ac-chip.is-ok { background: var(--ac-ok-bg); color: var(--ac-ok); }
.ac-root .ac-chip.is-bad { background: var(--ac-bad-bg); color: var(--ac-bad); }
.ac-root .ac-chip.is-warn { background: var(--ac-warn-bg); color: var(--ac-warn); }
.ac-root .ac-vote-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px 20px; }
.ac-root .ac-vote-member { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }

.ac-root .ac-acc-item { border: 1px solid var(--ac-border); border-radius: 10px; margin-top: 8px; overflow: hidden; }
.ac-root .ac-acc-item:first-child { margin-top: 0; }
.ac-root .ac-acc-head { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: #fff; padding: 10px 14px; text-align: left; font-weight: 700; color: var(--ac-ink); cursor: pointer; }
.ac-root .ac-acc-head > span:first-child { flex: 1; }
.ac-root .ac-acc-item.is-open .ac-acc-head { background: #f6f8fa; }
.ac-root .ac-acc-body { margin: 0; padding: 10px 14px 12px 34px; border-top: 1px solid var(--ac-line); }
.ac-root .ac-acc-body li { margin-bottom: 6px; }

.ac-root .ac-rules-short { font-weight: 600; }
.ac-root .ac-rules-long { margin-top: 10px; }
.ac-root .ac-rules-long p { margin: 0 0 6px; text-indent: 1.5em; }

@media (max-width: 575px) {
    .ac-root .ac-title { font-size: 15px; }
    .ac-root .ac-key-price { font-size: 18px; }
    .ac-root .ac-key-date { border-left: 0; padding-left: 0; }
    .ac-root .ac-counters { margin-left: 0; }
    .ac-root .ac-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .ac-root .ac-pulse { animation: none; } .ac-root .ac-zoom { transition: none; } }
