/* Кабинет → «Автоматизация». Цвета — из переменных кабинета (account.html). */
.ctabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 0 20px; }
.ctabs::-webkit-scrollbar { display: none; }
.ctabs button { height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: #a3b0ab; font: 600 15px/1 var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ctabs button:hover { color: var(--text); }
.ctabs button.on { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.ctabs .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.ctabs .dot.on { background: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
/* Обе вкладки одной ширины, место под полосу прокрутки всегда занято — шапка не прыгает. */
html { scrollbar-gutter: stable; }
main.wrap { max-width: 1040px; }
.ctabs { position: relative; }
.ctabs-ink { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 10px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); transition: transform .38s cubic-bezier(.34,1.3,.64,1), width .38s cubic-bezier(.34,1.3,.64,1); pointer-events: none; }
.ctabs button { position: relative; z-index: 1; transition: color .2s; }
.ctabs button.on { background: transparent; box-shadow: none; }
.ctabs button:active { transform: scale(.97); }
#autoView { min-height: 60vh; }

.au-inf { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(220,255,240,.22); color: var(--muted); font: 700 10.5px/1 var(--body); cursor: help; flex: none; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.au-inf:hover, .au-inf:focus { color: var(--mint); border-color: rgba(63,217,160,.4); outline: none; }
.au-tip { position: fixed; z-index: 100; max-width: 280px; padding: 10px 12px; border-radius: 10px; background: #262d31; border: 1px solid rgba(220,255,240,.22); box-shadow: 0 14px 34px -10px rgba(0,0,0,.6); font: 400 13px/1.45 var(--body); color: var(--text); pointer-events: none; opacity: 0; transition: opacity .12s; }
.au-tip.on { opacity: 1; }

.au-sw { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; cursor: pointer; }
.au-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.au-sw input:disabled { cursor: default; }
.au-sw i { position: absolute; inset: 0; border-radius: 99px; background: #2a3236; border: 1px solid var(--line); transition: background .15s; }
.au-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #c7d2cd; transition: transform .18s cubic-bezier(.34,1.56,.64,1), background .15s; }
.au-sw input:checked + i { background: var(--mint); border-color: transparent; }
.au-sw input:checked + i::after { transform: translateX(18px); background: var(--mint-ink); }
.au-sw input:disabled + i { opacity: .45; }
.au-sw input:focus-visible + i { box-shadow: 0 0 0 3px var(--mint-soft); }
.au-sw.sm { width: 36px; height: 22px; }
.au-sw.sm i::after { width: 14px; height: 14px; }
.au-sw.sm input:checked + i::after { transform: translateX(14px); }

.au-main { display: flex; align-items: center; gap: 14px; }
.au-main b { display: block; font-size: 18px; }
.au-main small { display: block; color: var(--muted); font-size: 13.5px; }
.au-sides { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.au-side { flex: 1 1 240px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-1); background: var(--bg-2); }
.au-side.dim { opacity: .6; }
.au-t { flex: 1; min-width: 0; }
.au-t b { display: block; font-size: 14.5px; }
.au-t small { color: var(--muted); font-size: 13px; }
.au-meter { height: 5px; border-radius: 99px; background: #2a3236; margin-top: 6px; overflow: hidden; }
.au-meter i { display: block; height: 100%; background: var(--mint); border-radius: 99px; }
.au-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-1); color: #a3b0ab; font-size: 13.5px; align-items: center; }
.au-net { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); }
.au-net::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.au-net.off::before { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.au-ref { margin-left: auto; }
.au-ref.busy .au-ico { animation: auspin .8s linear infinite; }
@keyframes auspin { to { transform: rotate(360deg); } }
.au-note { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-top: 14px; border: 1px solid var(--line); background: var(--bg-2); color: #a3b0ab; }
.au-note b { color: var(--text); }
.au-note.warn { background: var(--amber-soft); border-color: rgba(226,184,92,.35); color: #ecd9ad; }
.au-note.bad { background: var(--red-soft); border-color: rgba(242,122,107,.35); color: #f5c2bb; }
.au-note.ok { background: var(--mint-soft); border-color: rgba(63,217,160,.4); color: #bdf2dc; }

.au-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.au-stepbox { min-width: 0; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-1); }
.au-k { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; margin-bottom: 10px; }
.au-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.au-ctl .au-chips { margin: 0; flex: 1 1 160px; }
.au-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.au-seg button { height: 30px; min-width: 36px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #a3b0ab; cursor: pointer; font: 600 14px/1 var(--body); white-space: nowrap; }
.au-seg button.on { background: #2a3236; color: var(--text); }
.au-fld { height: 36px; display: inline-flex; align-items: center; gap: 4px; padding: 0 6px 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); width: 140px; cursor: text; }
.au-fld:focus-within { border-color: rgba(63,217,160,.4); box-shadow: 0 0 0 3px var(--mint-soft); }
.au-fld span { color: var(--muted); font: 400 14px/1 var(--mono); }
.au-fld input { flex: 1; width: 0; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 600 14.5px/1 var(--mono); }
.au-fld input::placeholder { color: var(--faint); font: 400 13px/1 var(--body); }
.au-clr { margin-left: auto; width: 22px; height: 22px; flex: none; border: 0; border-radius: 6px; background: #2a3236; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; display: grid; place-items: center; }
.au-clr:hover { color: var(--red); background: var(--red-soft); }
.au-chips { display: flex; flex-wrap: nowrap; gap: 5px; margin-top: 8px; }
.au-chip { flex: 1 1 0; min-width: 0; height: 30px; padding: 0 6px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: #a3b0ab; cursor: pointer; font: 600 12.5px/1 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-chip:hover { color: var(--text); border-color: rgba(220,255,240,.22); }
.au-chip.on { color: var(--mint); border-color: rgba(63,217,160,.4); background: var(--mint-soft); }
.au-chip em { font-style: normal; font-family: var(--mono); opacity: .7; margin-left: 5px; }

.au-lhead { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.au-search { flex: 1 1 200px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg-2); }
.au-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--text); font: 400 15px/1 var(--body); }
.au-search svg { width: 16px; height: 16px; color: var(--faint); flex: none; }
.au-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.au-filters .au-chip { flex: none; padding: 0 11px; font-size: 13px; }
.au-order { color: var(--faint); font-size: 12.5px; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }

.au-grid { display: grid; grid-template-columns: 36px minmax(0, 2.4fr) repeat(5, minmax(78px, 1fr)) 40px 18px; gap: 0 12px; align-items: center; }
.au-vs { display: contents; }
.au-thead { padding: 0 12px 8px; color: var(--faint); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.au-thead > div { display: flex; align-items: center; gap: 5px; }
.au-item { border: 1px solid var(--line-1); border-radius: 12px; background: var(--bg-2); margin-bottom: 6px; transition: border-color .12s; }
.au-item:hover { border-color: var(--line); }
.au-item.open { border-color: rgba(63,217,160,.4); }
.au-item.dirty { border-color: rgba(226,184,92,.5); }
.au-item > .au-grid { padding: 10px 12px; cursor: pointer; }
.au-item.offrow .au-nm b, .au-item.offrow .au-v { opacity: .5; }
.au-thumb { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, #2a3236, #1a1f22); position: relative; overflow: hidden; }
.au-thumb img { width: 100%; height: 100%; object-fit: contain; }
.au-thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc, #5d6b66); }
.au-nm { min-width: 0; }
.au-nm b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-nm small { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; margin-top: 2px; }
.au-st { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 700; }
.au-st.best { color: var(--mint); background: var(--mint-soft); }
.au-st.out { color: var(--red); background: var(--red-soft); }
.au-st.cap, .au-st.wait { color: var(--amber); background: var(--amber-soft); }
.au-st.off, .au-st.none { color: var(--muted); background: #2a3236; }
.au-st.unsaved { color: var(--amber); border: 1px dashed rgba(226,184,92,.5); }
.au-v { font: 600 14px/1.2 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-v.up { color: var(--red); }
.au-v.me { color: var(--mint); }
.au-v.dim { color: var(--faint); font: 400 13px/1.2 var(--body); }
.au-km { display: none; }
.au-chev { width: 18px; height: 18px; color: var(--faint); transition: transform .2s; }
.au-chev svg { width: 18px; height: 18px; }
.au-item.open .au-chev { transform: rotate(180deg); color: var(--mint); }

.au-edit { border-top: 1px solid var(--line-1); padding: 16px; }
.au-ecols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.au-ecols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.au-eb { min-width: 0; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-1); }
.au-eb .au-fld { width: 100%; }
.au-warnline { margin-top: 8px; font-size: 12.5px; color: var(--amber); }
.au-where { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-1); }
.au-where h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.au-wrow { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px dashed var(--line-1); font-size: 13.5px; color: #a3b0ab; }
.au-where h4 + .au-wrow { border-top: 0; }
.au-wrow b { margin-left: auto; font-family: var(--mono); color: var(--text); white-space: nowrap; }
.au-wrow b.stop { color: var(--amber); }
.au-wrow b.dim { display: none; }
.au-ebottom { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.au-hist { color: var(--muted); font-size: 13px; margin-right: auto; }
.au-hist b { color: #a3b0ab; font-family: var(--mono); font-weight: 600; }

.au-log { display: grid; }
.au-lg { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line-1); font-size: 14px; }
.au-lg:first-child { border-top: 0; }
.au-lg time { color: var(--faint); font-size: 13px; }
.au-n { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-n small { color: var(--muted); margin-left: 6px; }
.au-p { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
.au-p s { color: var(--faint); }
.au-a { color: var(--mint); }
.au-a.dn { color: var(--amber); }
.au-a.no { color: var(--faint); }

.au-gate { text-align: center; }
.au-gate h2 { justify-content: center; }
.au-lk { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--mint-soft); border: 1px solid rgba(63,217,160,.4); font-size: 26px; }
.au-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; text-align: left; }
.au-pl { padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-1); }
.au-pl b { display: block; }
.au-pl span { font-family: var(--mono); color: var(--mint); font-weight: 700; }
.au-pl small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }

.au-sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(4,8,7,.66); backdrop-filter: blur(4px); padding: 16px; }
.au-sheet .card { max-width: 520px; width: 100%; margin: 0; }
.au-sheet ul { margin: 10px 0 14px; padding-left: 20px; color: #a3b0ab; font-size: 14px; }
.au-sheet li { margin: 4px 0; }
.au-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 16px; cursor: pointer; }
.au-agree a { color: var(--mint); }
.au-srow { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }

.au-savebar { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 14px; background: #1f2a26; border: 1px solid rgba(63,217,160,.4); box-shadow: 0 20px 50px -14px rgba(0,0,0,.7); margin: 10px 0 16px; }
.au-savebar span { margin-right: auto; font-size: 14px; }

@media (max-width: 860px) { .au-ecols, .au-ecols.two { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .au-steps { grid-template-columns: 1fr; } .au-ref { margin-left: 0; } .au-plans { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .au-thead { display: none; }
  .au-item > .au-grid { grid-template-columns: 36px minmax(0, 1fr) 40px 18px; gap: 10px; padding: 12px; }
  .au-vs { order: 5; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .au-km { display: block; color: var(--faint); font: 400 11.5px/1.3 var(--body); }
  .au-nm b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
  .ctabs { width: 100%; }
  .ctabs button { flex: 1 0 auto; justify-content: center; }
  .au-eb .au-chip { height: 34px; font-size: 13px; }
  .au-where { padding: 12px; margin-top: 8px; }
  .au-wrow { flex-direction: column; gap: 2px; align-items: flex-start; }
  .au-wrow b { margin-left: 0; }
  .au-ctl .au-fld { flex: 1 1 50%; }
  .au-ctl .au-chips { flex: 1 0 100%; }
  .au-ctl .au-chip { height: 34px; }
  .au-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .au-lg { grid-template-columns: minmax(0, 1fr) auto; }
  .au-lg time { grid-column: 1 / -1; }
  .au-savebar { bottom: 10px; padding: 10px 10px 10px 14px; }
  .au-savebar span { font-size: 13px; }
  .au-main b { font-size: 16px; }
}

/* ---------- движение ---------- */
@keyframes au-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes au-fade { from { opacity: 0; transform: translateX(var(--dx, 0px)) translateY(4px); } }
@keyframes au-pop { 0% { transform: scale(.92); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes au-bar { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes au-note { from { opacity: 0; transform: translateY(-4px); } }
.au-enter { animation: au-up .46s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.au-swap > * { animation: au-fade .3s cubic-bezier(.2,.8,.2,1) both; }
.au-swap > :nth-child(2) { animation-delay: 25ms; } .au-swap > :nth-child(3) { animation-delay: 50ms; } .au-swap > :nth-child(4) { animation-delay: 75ms; }
.au-swap > :nth-child(5) { animation-delay: 100ms; } .au-swap > :nth-child(n+6) { animation-delay: 120ms; }
.au-savebar.in { animation: au-bar .38s cubic-bezier(.34,1.3,.64,1) both; }
.au-fresh { animation: au-note .3s ease-out both; }
.au-chip.pop { animation: au-pop .34s cubic-bezier(.34,1.56,.64,1); }

#autoView .btn, .au-chip, .au-seg button, .au-clr, .au-search, .au-fld { transition: transform .16s cubic-bezier(.2,.8,.2,1), background-color .16s, color .16s, border-color .16s, box-shadow .2s, filter .16s; }
#autoView .btn:hover:not(:disabled) { transform: translateY(-1px); }
#autoView .btn:active:not(:disabled), .au-chip:active, .au-chip.tap, .au-seg button:active, .au-seg button.tap, .au-clr:active { transform: scale(.95); }
.au-chip.tap { color: var(--mint); border-color: rgba(63,217,160,.4); background: var(--mint-soft); }
.au-seg.moving button.on:not(.tap) { background: transparent; color: #a3b0ab; }
.au-seg button.tap { background: #2a3236; color: var(--text); }
.au-search:focus-within { border-color: rgba(63,217,160,.4); box-shadow: 0 0 0 3px var(--mint-soft); }
.au-item { transition: border-color .18s, background-color .18s, box-shadow .25s; }
.au-item:hover { background: #1b2023; }
.au-item.open { box-shadow: 0 18px 40px -24px rgba(63,217,160,.35); }
.au-item > .au-grid:active { transform: scale(.995); }
.au-item > .au-grid { transition: transform .12s; }
.au-chev { transition: transform .28s cubic-bezier(.34,1.4,.64,1), color .2s; }
.au-sw i::after { transition: transform .22s cubic-bezier(.34,1.56,.64,1), width .16s, background .15s; }
.au-sw:active i::after { width: 22px; }
.au-sw.sm:active i::after { width: 18px; }
.au-sw input:checked + i::after { transition: transform .22s cubic-bezier(.34,1.56,.64,1), width .16s, left .16s, background .15s; }
.au-sw:active input:checked + i::after { transform: translateX(14px); }
.au-sw.sm:active input:checked + i::after { transform: translateX(10px); }
.au-meter i { transition: width .5s cubic-bezier(.2,.8,.2,1); }
.au-ref:not(:disabled):not(.busy):hover .au-ico { transform: rotate(-90deg); }
.au-ico { display: inline-grid; place-items: center; width: 16px; height: 16px; transition: transform .3s cubic-bezier(.34,1.4,.64,1); }
.au-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.au-inf { transition: color .15s, border-color .15s, transform .15s; }
.au-inf:hover { transform: scale(1.12); }
.au-tip { transform: translateY(4px); transition: opacity .14s, transform .18s cubic-bezier(.2,.8,.2,1); }
.au-tip.on { transform: none; }
.au-sheet { animation: au-note .2s ease-out both; }
.au-sheet .card { animation: au-bar .32s cubic-bezier(.34,1.3,.64,1) both; }

@media (prefers-reduced-motion: reduce) {
  .ctabs-ink, .au-enter, .au-swap > *, .au-savebar.in, .au-fresh, .au-chip.pop, .au-sheet, .au-sheet .card { animation: none !important; transition: none !important; }
}

/* ---------- раскрытая строка: карточка предмета ---------- */
.au-item.open > .au-grid { display: none; } .au-item.open > .au-tr { display: grid; }
.au-item.open { background: var(--bg-2); }
.au-item.open:hover { background: var(--bg-2); }
.au-head { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 20px; padding: 18px; align-items: stretch; cursor: pointer; }
.au-pic { position: relative; border-radius: 14px; min-height: 150px; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line-1);
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--rc, #5d6b66) 22%, #262e32), #15191b 72%); }
.au-pic::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--rc, #5d6b66); }
.au-pic img { width: 92%; max-width: 230px; filter: drop-shadow(0 12px 20px rgba(0,0,0,.55)); }
.au-info { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.au-title { font: 800 19px/1.25 var(--display); letter-spacing: -.01em; }
.au-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.au-tags .au-st { height: 24px; }
.au-tag { height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 7px; font-size: 12.5px; font-weight: 600; background: #2a3236; color: #a3b0ab; }
.au-tag.st { color: #f08a3c; background: rgba(240,138,60,.12); }
.au-tag.sv { color: #f2c94c; background: rgba(242,201,76,.12); }
.au-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.au-stat { padding: 10px 12px; border-radius: 11px; background: var(--card); border: 1px solid var(--line-1); min-width: 0; }
.au-stat span { display: block; font-size: 12px; color: var(--muted); }
.au-stat b { display: block; font: 700 17px/1.3 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-stat b.up { color: var(--red); } .au-stat b.me { color: var(--mint); }
.au-stat small { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.au-side2 { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; justify-content: space-between; }
.au-x { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, transform .15s; }
.au-x svg { width: 16px; height: 16px; transform: rotate(180deg); }
.au-x:hover { color: var(--mint); border-color: rgba(63,217,160,.4); }
.au-x:active { transform: scale(.94); }
.au-toggle { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 11px; background: var(--card); border: 1px solid var(--line-1); font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.au-body { padding: 0 18px 18px; }
.au-sec { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; color: var(--muted); font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.au-sec::after { content: ""; flex: 1; height: 1px; background: var(--line-1); }
.au-body .au-sec ~ .au-sec { margin-top: 16px; }
.au-ecols { gap: 10px; }
.au-eb .au-k { justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 14px; }
.au-eb .au-k em { font-style: normal; font: 700 15px/1 var(--mono); color: var(--text); white-space: nowrap; }
.au-eb .au-k em.dim { color: var(--faint); font: 400 13px/1 var(--body); }
.au-desc { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.4; min-height: 35px; }
.au-where2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.au-jump { padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-1); display: grid; grid-template-columns: auto minmax(60px, 1fr) auto auto; align-items: center; gap: 14px; }
.au-pt span { display: block; font: 600 11.5px/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.au-pt b { display: block; font: 800 20px/1.25 var(--mono); white-space: nowrap; }
.au-pt small { display: block; font-size: 12px; color: var(--faint); max-width: 190px; }
.au-pt.to b { color: var(--mint); }
.au-pt.same b { color: #a3b0ab; }
.au-pt.edge { padding-left: 14px; border-left: 1px solid var(--line-1); }
.au-pt.edge b { font-size: 16px; }
.au-arrow { color: var(--mint); text-align: center; }
.au-arrow svg { width: 100%; height: 12px; display: block; }
.au-arrow em { font-style: normal; font: 600 12px/1 var(--mono); color: #a3b0ab; }
.au-flow { padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-1); }
.au-flow-t { color: var(--muted); font: 600 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.au-flow .au-wrow:first-of-type { border-top: 0; }
.au-ebottom { justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line-1); }
.au-ebottom .au-hist { margin-right: 0; }

@media (max-width: 860px) {
  .au-where2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .au-head { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; position: relative; }
  .au-pic { min-height: 0; height: 150px; }
  .au-pic img { max-width: 170px; }
  .au-title { font-size: 17px; padding-right: 40px; }
  .au-side2 { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .au-x { position: absolute; top: 20px; right: 20px; background: rgba(11,14,15,.7); }
  .au-toggle, .au-side2 .btn { flex: 1 1 auto; justify-content: center; }
  .au-stat { padding: 8px 10px; } .au-stat small { display: none; } .au-stat b { font-size: 15px; }
  .au-body { padding: 0 12px 12px; }
  .au-desc { min-height: 0; }
  .au-jump { grid-template-columns: auto minmax(40px, 1fr) auto; }
  .au-pt.edge { grid-column: 1 / -1; border-left: 0; padding: 10px 0 0; border-top: 1px solid var(--line-1); }
  .au-ebottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* как работать при закрытом Chrome */
.au-help { margin-top: 12px; border-radius: 12px; border: 1px solid var(--line-1); background: var(--bg-2); }
.au-help summary { cursor: pointer; padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: #a3b0ab; list-style: none; display: flex; align-items: center; gap: 8px; }
.au-help summary::-webkit-details-marker { display: none; }
.au-help summary::before { content: "?"; flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(220,255,240,.22); font-size: 11px; }
.au-help[open] summary { color: var(--text); }
.au-help p { margin: 0; padding: 0 14px 12px 40px; font-size: 13.5px; color: #a3b0ab; line-height: 1.5; }

/* ---- Новый вид списка (28.10.2026): сводка, быстрые действия, таблица, карточка в три колонки ---- */
main.wrap { max-width: 1180px; }
.au-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.au-kpi { padding: 10px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-1); }
.au-kpi small { display: block; font-size: 12px; color: var(--muted); }
.au-kpi b { font: 700 18px/1.3 var(--mono); }
.au-kpi b.me { color: var(--mint); } .au-kpi b.up { color: var(--red); }
.au-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 12px; }
.au-ql { font-size: 12.5px; color: var(--muted); margin-right: 2px; }
.au-qb { height: 30px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 500 13px/1 var(--body); cursor: pointer; transition: border-color .1s, background .1s, color .1s, transform .07s; }
.au-qb:hover { border-color: rgba(63,217,160,.4); }
.au-qb:active, .au-qb.tap { transform: scale(.95); }
.au-qb.on { color: var(--mint); background: var(--mint-soft); border-color: rgba(63,217,160,.4); }
.au-sort { margin-left: auto; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.au-sort select { height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 500 13px var(--body); padding: 0 8px; }

.au-tr { display: grid; grid-template-columns: 52px minmax(0, 2.3fr) repeat(4, minmax(0, 1fr)) 120px 40px 18px; gap: 12px; align-items: center; }
.au-th { padding: 0 14px 8px; color: var(--faint); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.au-th > div { display: flex; align-items: center; gap: 5px; }
.au-item > .au-tr { padding: 10px 14px; cursor: pointer; transition: transform .07s; }
.au-item > .au-tr:active { transform: scale(.997); }
.au-item.open > .au-tr { background: rgba(63,217,160,.05); border-radius: 12px 12px 0 0; }
.au-tr .au-thumb { width: 52px; height: 38px; }
.au-nm .au-tags { margin-top: 4px; gap: 5px; }
.au-nm .au-tag, .au-nm .au-st { height: 20px; font-size: 11px; padding: 0 7px; }
.au-td b { display: block; font: 700 14.5px/1.3 var(--mono); white-space: nowrap; }
.au-td small { display: block; font-size: 11.5px; color: var(--muted); }
.au-td.me b { color: var(--mint); } .au-td.up b { color: var(--red); } .au-td.dim b { color: var(--faint); font-weight: 500; }
.au-td.step b { color: var(--mint); font-weight: 600; }
.au-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; transition: background .12s, color .12s; }
.au-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.au-pill.best { color: var(--mint); background: var(--mint-soft); }
.au-pill.out { color: var(--red); background: var(--red-soft); }
.au-pill.cap, .au-pill.wait { color: var(--amber); background: var(--amber-soft); }
.au-pill.off, .au-pill.none { color: var(--muted); background: #2a3236; }
.au-item.offrow .au-td b { opacity: .55; }

.au-card.au-x3 { display: grid; grid-template-columns: 210px minmax(0, 1fr) 320px; gap: 14px; padding: 14px; border-top: 1px solid var(--line-1); cursor: default; }
.au-left { display: flex; flex-direction: column; gap: 8px; }
.au-card.au-x3 > * { min-width: 0; }
.au-left .au-pic { min-height: 170px; }
.au-lbtn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 600 13px/1 var(--body); text-decoration: none; cursor: pointer; transition: border-color .1s, background .1s, transform .07s; }
.au-lbtn:hover { border-color: rgba(63,217,160,.4); background: #1b2422; }
.au-lbtn:active { transform: scale(.97); }
.au-lbtn:disabled { opacity: .5; cursor: default; }
.au-lbtn .au-ico svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.au-lbtn.busy .au-ico { animation: auspin .5s linear infinite; }
.au-mid { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.au-mid .au-stats { margin-top: 0; }
.au-stat.bad { border-color: rgba(242,122,107,.35); }
.au-mid .au-ebottom { margin-top: 0; padding-top: 0; border-top: 0; }
.au-lad { padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-1); }
.au-ladh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 13px; }
.au-ladh span { font-size: 12px; color: var(--muted); }
.au-lv { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 8px; font-size: 13px; }
.au-lp { font: 600 13.5px/1 var(--mono); }
.au-ll { color: var(--muted); font-size: 12.5px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-lbar { height: 7px; border-radius: 4px; background: rgba(255,255,255,.04); overflow: hidden; }
.au-lbar i { display: block; height: 100%; border-radius: 4px; background: #2d3a37; }
.au-lv.me { background: var(--mint-soft); box-shadow: inset 0 0 0 1px rgba(63,217,160,.35); }
.au-lv.me .au-lbar i { background: var(--mint); } .au-lv.me .au-ll { color: var(--mint); font-weight: 600; }
.au-lv.them .au-lbar i { background: rgba(242,122,107,.55); } .au-lv.them .au-lp { color: var(--red); }
.au-lv.them2 .au-lbar i { background: #4a5a55; }
.au-lv.edge .au-lbar i { background: repeating-linear-gradient(90deg, rgba(226,184,92,.55) 0 6px, transparent 6px 10px); } .au-lv.edge .au-ll { color: var(--amber); }

.au-panel { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-1); }
.au-pf .au-fld { width: 100%; height: 40px; }
.au-tiles { display: grid; gap: 8px; }
.au-tile { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 11px; border: 1px solid var(--line-1); border-radius: 11px; background: var(--bg-2); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.au-tile:hover { border-color: var(--mint-line); }
.au-tile.sel { border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.au-tk { max-width: 100%; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.au-tv { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.au-tv.dim { color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: normal; line-height: 1.25; }
.au-tv.lockv { color: var(--amber); font-size: 14px; }
.au-lock { display: inline-flex; }
.au-lock svg { width: 12px; height: 12px; fill: none; stroke: var(--amber); stroke-width: 2.2; stroke-linecap: round; }
.au-gate { text-align: left; padding: 14px 14px 14px 16px; border-radius: 12px; border: 1px solid rgba(226,184,92,.4); background: linear-gradient(180deg, rgba(226,184,92,.06), transparent 70%); }
.au-gate b { display: block; margin-bottom: 5px; font-size: 14.5px; }
.au-gate p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.au-gate .btn { display: inline-flex; }
.au-pfl { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13.5px; }
.au-unit { margin-left: auto; display: inline-flex; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.au-unit button { height: 22px; min-width: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: 600 12px/1 var(--mono); cursor: pointer; transition: background .1s, color .1s; }
.au-unit button.on { background: var(--mint-soft); color: var(--mint); }
.au-pfn { margin-top: 6px; font: 600 12.5px var(--mono); color: var(--muted); }
.au-go { height: 44px; margin-top: 2px; border: 0; border-radius: 11px; background: var(--mint); color: var(--mint-ink); font: 700 14px/1 var(--body); cursor: pointer; transition: box-shadow .12s, transform .07s, background .12s, color .12s; }
.au-go:hover { box-shadow: 0 0 0 4px var(--mint-soft), 0 8px 22px -8px rgba(63,217,160,.6); }
.au-go:active, .au-go.tap { transform: scale(.97); }
.au-go.done { background: var(--mint-soft); color: var(--mint); box-shadow: inset 0 0 0 1px rgba(63,217,160,.45); }
.au-go:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

@media (max-width: 1020px) {
  .au-card.au-x3 { grid-template-columns: 180px minmax(0, 1fr); }
  .au-panel { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .au-kpis { grid-template-columns: 1fr 1fr; }
  .au-sort { margin-left: 0; }
  .au-quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .au-qb, .au-sort { white-space: nowrap; flex: none; }
  .au-th { display: none; }
  .au-item > .au-tr { position: relative; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; padding: 12px; }
  .au-tr > .au-thumb { display: none; }
  .au-tr > .au-nm { grid-column: 1 / -1; grid-row: 1; padding-right: 76px; }
  .au-tr > .au-sw { position: absolute; top: 12px; right: 38px; }
  .au-tr > .au-chev { position: absolute; top: 16px; right: 12px; }
  .au-tr > .au-td { grid-row: 2; }
  .au-tr > .au-td.step { display: none; }
  .au-tr > .au-stc { grid-column: 1 / -1; grid-row: 3; }
  .au-tr .au-td::before { content: attr(data-l); display: block; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
  .au-tr > .au-stc::before { display: none; }
  .au-item .au-card.au-x3 { grid-template-columns: 1fr; padding: 12px; }
  .au-item > .au-tr .au-td b { letter-spacing: -.02em; }
  .au-left { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 10px; }
  .au-left .au-lbtn { min-width: 0; padding: 0 8px; font-size: 12.5px; }
  .au-left .au-pic { min-height: 0; height: 86px; grid-row: span 2; }
  .au-lv { grid-template-columns: 80px minmax(0, 1fr) 110px; }
  .au-stats { gap: 6px; }
  .au-stat { padding: 8px; } .au-stat b { font-size: 13px; overflow: visible; text-overflow: clip; } .au-stat span, .au-stat small { font-size: 11px; }
  .au-tr > .au-td { min-width: 0; }
  .au-tr .au-td b { font-size: 13.5px; white-space: nowrap; }
  .au-tr .au-td::before { line-height: 1.25; min-height: 2.5em; }
  .au-mid .au-jump { padding: 12px; }
  .au-mid .au-jump b { font-size: 16px; }
  .au-ladh { flex-direction: column; gap: 2px; }
}

/* режим просмотра и правки настроек предмета */
.au-vrow { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line-1); font-size: 13.5px; }
.au-vrow:first-child { padding-top: 2px; }
.au-vk { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.au-vrow b { margin-left: auto; font: 700 14px/1.3 var(--mono); }
.au-vrow b.dim { color: var(--faint); font: 500 13px/1.3 var(--body); }
.au-edit { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 600 13.5px/1 var(--body); cursor: pointer; transition: border-color .1s, background .1s, transform .07s; }
.au-edit:hover { border-color: rgba(63,217,160,.4); background: #1b2422; }
.au-edit:active { transform: scale(.97); }
.au-panel.editing { box-shadow: inset 0 0 0 1px rgba(63,217,160,.45); animation: au-edin .18s ease-out; }
@keyframes au-edin { from { opacity: .6; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.au-edrow { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.au-cancel, .au-savebtn { height: 40px; border-radius: 10px; font: 700 13.5px/1 var(--body); cursor: pointer; transition: transform .07s, box-shadow .12s, opacity .12s; }
.au-cancel { border: 1px solid var(--line); background: transparent; color: var(--text); }
.au-savebtn { border: 0; background: var(--mint); color: var(--mint-ink); }
.au-savebtn:hover:not(:disabled) { box-shadow: 0 0 0 4px var(--mint-soft); }
.au-savebtn:disabled { opacity: .45; cursor: default; }
.au-cancel:active, .au-savebtn:active { transform: scale(.97); }

/* общий шаг внутри вкладки заявок / лотов */
.au-cstep { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: linear-gradient(90deg, rgba(63,217,160,.08), transparent 70%), var(--bg-2); border: 1px solid rgba(63,217,160,.28); }
.au-cstep.editing { border-color: rgba(63,217,160,.5); background: var(--bg-2); }
.au-csk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.au-csv { font: 700 17px/1 var(--mono); color: var(--mint); }
.au-css { color: var(--muted); font-size: 12.5px; flex: 1; min-width: 180px; }
.au-edit.sm { height: 32px; padding: 0 14px; }
.au-csctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; }
.au-csctl .au-fld { width: 140px; }
.au-csctl .au-chips { margin-top: 0; flex: 1; min-width: 200px; }
.au-cstep .au-edrow { min-width: 220px; }
@media (max-width: 760px) { .au-cstep .au-edrow, .au-csctl .au-fld { width: 100%; } }

.au-net-tr { margin-left: auto; align-self: flex-start; white-space: nowrap; padding: 6px 12px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line-1); font-size: 13px; }
@media (max-width: 760px) { .au-main { flex-wrap: wrap; } .au-net-tr { margin-left: 0; } }

/* крупные вкладки «Заявки на покупку» / «Лоты на продажу» со своим тумблером */
.au-bigtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.au-bt { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; transition: border-color .12s, background .12s, box-shadow .15s, transform .07s; outline: none; }
.au-bt:hover { border-color: rgba(63,217,160,.3); }
.au-bt:active { transform: scale(.995); }
.au-bt:focus-visible { box-shadow: 0 0 0 3px var(--mint-soft); }
.au-bt.on { border-color: rgba(63,217,160,.55); background: linear-gradient(135deg, rgba(63,217,160,.14), rgba(63,217,160,.03) 60%), var(--bg-2); box-shadow: 0 14px 34px -22px rgba(63,217,160,.6); }
.au-bt.on::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--mint); }
.au-bt.dim { opacity: .6; }
.au-bt-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #20272a; color: var(--muted); transition: background .12s, color .12s; }
.au-bt.on .au-bt-ic { background: var(--mint-soft); color: var(--mint); }
.au-bt-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.au-bt-tx { flex: 1; min-width: 0; }
.au-bt-tx b { display: flex; align-items: center; gap: 8px; font-size: 16.5px; }
.au-bt-tx b em { font: 700 12px/1 var(--mono); font-style: normal; padding: 4px 8px; border-radius: 99px; background: #2a3236; color: var(--text); }
.au-bt.on .au-bt-tx b em { background: var(--mint); color: var(--mint-ink); }
.au-bt-tx small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.au-bt .au-meter { max-width: 260px; }
.au-lhead .au-search { flex: 1; }
@media (max-width: 760px) {
  .au-bigtabs { grid-template-columns: 1fr; gap: 8px; }
  .au-bt { padding: 12px 14px; gap: 12px; }
  .au-bt-ic { width: 38px; height: 38px; }
}

/* ——— Панель над списком (10.11.2026): фильтры одной полосой, сортировка и меню «Действия» ——— */
.au-bar { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; }
.au-seg2 { position: relative; display: flex; gap: 2px; min-width: 0; padding: 3px; border-radius: 11px; background: #14171a; border: 1px solid #2b3034; overflow-x: auto; scrollbar-width: none; }
.au-seg2::-webkit-scrollbar { display: none; }
.au-seg2-ink { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 8px; background: #232729; box-shadow: inset 0 0 0 1px #3d4348, 0 1px 0 rgba(255,255,255,.04); pointer-events: none; }
.au-sf { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #8a9792; font: 600 13.5px/1 var(--body); cursor: pointer; white-space: nowrap; transition: color .18s; }
.au-sf:hover { color: var(--text); }
.au-sf.on { color: var(--text); }
.au-sf em { font-style: normal; font-variant-numeric: tabular-nums; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 99px; background: rgba(220,255,240,.06); color: #8a9792; font: 700 11.5px/1 var(--body); transition: background .18s, color .18s; }
.au-sf.on em { background: var(--mint-soft); color: var(--mint); }
.au-sd { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.au-sd.bad { background: #f27a6b; box-shadow: 0 0 0 3px rgba(242,122,107,.14); }
.au-sd.warn { background: #e2b85c; box-shadow: 0 0 0 3px rgba(226,184,92,.14); }
.au-sd.ok { background: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.au-sd.off { background: #5d6b66; }
.au-sf:focus-visible, .au-mbtn:focus-visible, .au-sort2:focus-visible, .au-mi:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.au-bar-r { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
/* Сортировка: [ступеньки — направление][название ▾ — меню] в одной рамке. */
.au-sortm { display: inline-flex; align-items: stretch; height: 40px; border-radius: 10px; border: 1px solid #2b3034; background: #14171a; transition: border-color .15s; }
.au-sortm:hover, .au-sortm.open, .au-sortm:focus-within { border-color: var(--mint-line); }
.au-sdir { display: grid; place-items: center; width: 38px; padding: 0; border: 0; border-right: 1px solid #2b3034; border-radius: 9px 0 0 9px; background: transparent; cursor: pointer; transition: background .15s; }
.au-sdir:hover { background: rgba(63,217,160,.1); }
.au-sdir:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }
.au-sdir svg { width: 18px; height: 18px; fill: none; stroke: var(--mint); stroke-width: 2.2; stroke-linecap: round; overflow: visible; }
/* Переворот: верхняя и нижняя ступеньки плавно меняются длиной. */
.au-sdir .l1, .au-sdir .l3 { transition: d .28s cubic-bezier(.2,1.2,.4,1); }
.au-sdir:not(.desc) .l1 { d: path("M4 6h6"); }
.au-sdir:not(.desc) .l3 { d: path("M4 18h16"); }
.au-sdir:active svg { transform: scale(.9); }
.au-sort2 { display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 10px 0 10px; border: 0; border-radius: 0 9px 9px 0; background: transparent; color: var(--text); font: 600 13.5px/1 var(--body); cursor: pointer; transition: background .15s; }
.au-sort2 svg { width: 16px; height: 16px; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (prefers-reduced-motion: reduce) { .au-sdir .l1, .au-sdir .l3 { transition: none; } }
.au-sort2 span { flex: 1; text-align: left; white-space: nowrap; }
.au-sort2 .au-chev { stroke: #8a9792; transition: transform .2s cubic-bezier(.2,1.3,.4,1); }
.au-sort2:hover, .au-sortm.open .au-sort2 { background: #1a1e21; }
.au-sortm.open .au-chev { transform: rotate(180deg); }
.au-mpop-l { left: 0; right: auto; min-width: max(100%, 190px); transform-origin: top left; }
.au-opt .au-tick { width: 16px; height: 16px; fill: none; stroke: var(--mint); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s cubic-bezier(.2,1.3,.4,1); }
.au-opt.on { color: var(--mint); }
.au-opt.on .au-tick { opacity: 1; transform: none; }
.au-menu { position: relative; }
.au-mbtn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px 0 11px; border-radius: 10px; border: 1px solid #2b3034; background: #14171a; color: var(--text); font: 600 13.5px/1 var(--body); cursor: pointer; transition: border-color .15s, background .15s; }
.au-mbtn svg { width: 16px; height: 16px; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linejoin: round; }
.au-mbtn:hover, .au-menu.open .au-mbtn { border-color: var(--mint-line); background: #1a1e21; }
.au-mbtn.on::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.au-mpop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; padding: 6px; border-radius: 12px; background: #1d2124; border: 1px solid #3d4348; box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: top right; transition: opacity .16s, transform .22s cubic-bezier(.2,1.3,.4,1), visibility 0s .22s; }
.au-menu.open .au-mpop { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .22s cubic-bezier(.2,1.3,.4,1), visibility 0s; }
.au-mh { padding: 7px 10px 8px; color: #8a9792; font: 500 12.5px/1.3 var(--body); }
.au-mi { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: 600 13.5px/1 var(--body); text-align: left; cursor: pointer; }
.au-mi:hover { background: #2a2f33; }
.au-mck { width: 32px; height: 18px; border-radius: 99px; background: #14171a; box-shadow: inset 0 0 0 1px #3d4348; position: relative; flex: none; transition: background .18s; }
.au-mck::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #8a9792; transition: transform .18s cubic-bezier(.3,1.4,.5,1), background .18s; }
.au-mi.on .au-mck { background: var(--mint); box-shadow: none; }
.au-mi.on .au-mck::after { transform: translateX(14px); background: var(--mint-ink); }
.au-mpop hr { margin: 5px 4px; border: 0; border-top: 1px solid #2f3438; }
@media (max-width: 760px) {
  .au-bar { flex-wrap: wrap; }
  .au-seg2 { flex: 1 0 100%; margin-right: -16px; border-radius: 11px 0 0 11px; }
  .au-bar-r { margin-left: 0; width: 100%; }
  .au-sortm { flex: 1; }
  .au-sort2 { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .au-mpop, .au-sf, .au-sf em { transition: none; } }

/* Окно подтверждения и галочка — как в меню Auto-move расширения */
#autoView .au-ov { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; border-radius: 14px; background: rgba(10,12,14,.72); opacity: 0; transition: opacity .22s ease, backdrop-filter .3s ease; }
#autoView .au-ov.in { opacity: 1; backdrop-filter: blur(2px); }
#autoView .au-ov.out { opacity: 0; }
#autoView .au-dlg { width: 600px; max-width: calc(100% - 24px); padding: 16px; border-radius: 14px; background: #1d2124; border: 1px solid var(--mint-line); opacity: 0; transform: translateY(14px) scale(.94); transition: transform .38s cubic-bezier(.2,1.4,.4,1), opacity .22s ease; }
#autoView .au-ov.in .au-dlg { opacity: 1; transform: none; }
#autoView .au-ov.out .au-dlg { opacity: 0; transform: translateY(8px) scale(.97); transition: transform .18s ease, opacity .18s ease; }
#autoView .au-dh { font: 700 15px/1.2 var(--body); }
#autoView .au-dn { margin: 3px 0 12px; color: #8a9792; font-size: 12px; }
#autoView .au-dcols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#autoView .au-ds { margin: 0 2px 6px; color: #8a9792; font: 600 11px/1 var(--body); text-transform: uppercase; letter-spacing: .04em; }
#autoView .au-dr { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; padding: 8px 10px; border-radius: 9px; background: #14171a; font-size: 13px; }
#autoView .au-dr span { color: #8a9792; }
#autoView .au-dr b { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
#autoView .au-dr.ch { background: var(--mint-soft); box-shadow: inset 0 0 0 1px var(--mint-line); }
#autoView .au-dr.ch b { color: var(--mint); }
#autoView .au-di { margin: 8px 2px 14px; color: #8a9792; font-size: 12px; line-height: 1.45; }
#autoView .au-db { display: flex; justify-content: flex-end; gap: 8px; }
#autoView .au-db .au-save2 { flex: 0 0 220px; }
#autoView .au-dlg .au-dr, #autoView .au-dlg .au-ds, #autoView .au-dlg .au-di, #autoView .au-dlg .au-db { opacity: 0; transform: translateY(6px); }
#autoView .au-ov.in .au-dlg .au-dr, #autoView .au-ov.in .au-dlg .au-ds, #autoView .au-ov.in .au-dlg .au-di, #autoView .au-ov.in .au-dlg .au-db { animation: au-dup .32s ease forwards; animation-delay: calc(80ms + var(--i, 0) * 35ms); }
#autoView .au-ov.in .au-dlg .au-dr.ch { animation: au-dup .32s ease forwards, au-dglow 1.4s ease 1; animation-delay: calc(80ms + var(--i, 0) * 35ms), calc(450ms + var(--i, 0) * 35ms); }
@keyframes au-dup { to { opacity: 1; transform: none; } }
@keyframes au-dglow { 0% { box-shadow: inset 0 0 0 1px var(--mint-line), 0 0 0 0 rgba(63,217,160,.45); } 60% { box-shadow: inset 0 0 0 1px var(--mint), 0 0 0 6px rgba(63,217,160,0); } 100% { box-shadow: inset 0 0 0 1px var(--mint-line); } }
#autoView .au-dlg.done { width: 320px; }
#autoView .au-done { display: grid; justify-items: center; gap: 8px; padding: 18px 0 14px; text-align: center; }
#autoView .au-done svg { width: 64px; height: 64px; overflow: visible; }
#autoView .au-done .ring { fill: none; stroke: var(--mint); stroke-width: 3; stroke-dasharray: 176; stroke-dashoffset: 176; transform: rotate(-90deg); transform-origin: 32px 32px; animation: au-ddraw .5s cubic-bezier(.6,0,.3,1) forwards; }
#autoView .au-done .disc { fill: var(--mint); transform: scale(0); transform-origin: 32px 32px; animation: au-ddisc .35s cubic-bezier(.2,1.6,.4,1) .42s forwards; }
#autoView .au-done .tick { fill: none; stroke: #06180f; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: au-ddraw .32s ease-out .62s forwards; }
#autoView .au-done .burst { fill: none; stroke: var(--mint); stroke-width: 2; opacity: 0; transform-origin: 32px 32px; animation: au-dburst .6s ease-out .5s forwards; }
@keyframes au-ddraw { to { stroke-dashoffset: 0; } }
@keyframes au-ddisc { to { transform: scale(1); } }
@keyframes au-dburst { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
#autoView .au-done b, #autoView .au-done small { opacity: 0; transform: translateY(6px); animation: au-dup .3s ease forwards; }
#autoView .au-done b { font-size: 16px; animation-delay: .75s; }
#autoView .au-done small { color: #8a9792; font-size: 12px; animation-delay: .85s; }
@media (max-width: 620px) { #autoView .au-dcols { grid-template-columns: 1fr; gap: 6px; } #autoView .au-db .au-save2 { flex: 1; } }
@media (prefers-reduced-motion: reduce) { #autoView .au-ov, #autoView .au-dlg, #autoView .au-dlg *, #autoView .au-done * { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; } }


/* Кнопки карточки (10.11.2026): «Сбросить» и «Сохранить · N», как в расширении */
#autoView .au-card { position: relative; }
#autoView .au-acts { display: flex; gap: 8px; margin-top: 4px; }
#autoView .au-reset { flex: none; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #3d4348; background: transparent; color: #8a9792; font: 600 13.5px/1 var(--body); cursor: pointer; transition: color .15s, border-color .15s; }
#autoView .au-reset:hover { color: var(--text); border-color: #5a6166; }
#autoView .au-save2 { flex: 1; height: 40px; border-radius: 10px; border: 1px solid #3d4348; background: #14171a; color: #8a9792; font: 700 14px/1 var(--body); cursor: default; transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .07s; }
#autoView .au-save2.on { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); cursor: pointer; box-shadow: 0 0 0 3px var(--mint-soft); }
#autoView .au-save2.on:hover { background: #62e8b6; }
#autoView .au-save2.on:active { transform: scale(.98); }
#autoView .au-csw { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; background: #14171a; border: 1px solid #31363a; }
#autoView .au-csw > div { flex: 1; min-width: 0; display: grid; gap: 3px; }
#autoView .au-csw b { font: 700 14px/1.2 var(--body); }
#autoView .au-csw small { color: #8a9792; font-size: 12.5px; line-height: 1.35; }
#autoView .au-csw.lock { opacity: .6; }
#autoView .au-db .au-save2 { flex: 0 0 220px; }
@media (max-width: 760px) { #autoView .au-dcols { grid-template-columns: minmax(0,1fr); } #autoView .au-db .au-save2 { flex: 1; } #autoView .au-ov { align-items: start; padding-top: 16px; } }
@media (prefers-reduced-motion: reduce) { #autoView .au-ov, #autoView .au-dlg, #autoView .au-dlg * { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; } }
/* окно не шире карточки: сетка окна без «авто»-колонки, иначе на телефоне окно раздувалось до 600 px */
#autoView .au-ov { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 0 12px; }
#autoView .au-dlg { max-width: 100%; }

/* «Сейчас → Станет» и стоп (10.11.2026): в средней колонке карточки места мало, четыре колонки в ряд
   вылезали за край. Теперь всегда две строки: цены со стрелкой, под ними стоп отдельной полосой. */
#autoView .au-jump { grid-template-columns: max-content minmax(44px, 1fr) minmax(0, max-content); gap: 6px 14px; align-items: start; padding: 14px 16px; }
#autoView .au-jump > .au-pt:not(.edge) b { font-size: 22px; }
#autoView .au-arrow { align-self: center; margin-top: 8px; display: grid; gap: 4px; justify-items: center; }
#autoView .au-pt small { max-width: 220px; margin-top: 3px; line-height: 1.35; }
#autoView .au-pt.edge { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 6px; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line-1); }
#autoView .au-pt.edge span { display: inline; }
#autoView .au-pt.edge b { display: inline; font-size: 15px; }
#autoView .au-pt.edge small { display: inline; margin: 0 0 0 auto; max-width: none; text-align: right; }

/* Перестановка в реальном времени (10.11.2026): значок и подпись на месте статуса; цены замылены, пока идёт */
#autoView .au-lv { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 4px; border-radius: 99px; font: 600 12px/1 var(--body); white-space: nowrap; animation: auLvIn .25s ease; }
#autoView .au-lv.busy { color: #3fd9a0; background: rgba(63,217,160,.10); }
#autoView .au-lv.wait { color: #f0d79a; background: rgba(226,184,92,.12); }
#autoView .au-lv.done { color: #3fd9a0; background: rgba(63,217,160,.14); }
#autoView .au-item > .au-tr { position: relative; }
#autoView .au-tr > .au-lv { position: absolute; z-index: 2; transform: translateY(-50%); }
#autoView .au-lv-busy > .au-tr > .au-stc, #autoView .au-lv-wait > .au-tr > .au-stc { visibility: hidden; }
#autoView .au-lv-busy > .au-tr > .au-td:not(.au-stc), #autoView .au-lv-wait > .au-tr > .au-td:not(.au-stc) { filter: blur(4px); opacity: .5; transition: filter .35s, opacity .35s; }
#autoView .au-lv-busy > .au-tr, #autoView .au-lv-wait > .au-tr { position: relative; }
#autoView .au-lv-wait { box-shadow: inset 0 0 0 1px rgba(226,184,92,.45); border-radius: 12px; }
#autoView .au-lv-done { animation: auLvGlow 1.2s ease; border-radius: 12px; }
.au-lvm { display: inline-block; flex: none; width: 20px; height: 20px; }
.au-lvm svg { display: block; width: 20px; height: 20px; overflow: visible; }
.au-lvm .track { fill: none; stroke: rgba(63,217,160,.2); stroke-width: 2.5; }
.au-lvm .spin { fill: none; stroke: #3fd9a0; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 40 100; transform-origin: 50% 50%; animation: auLvRot .8s linear infinite; }
.au-lvm .ring, .au-lvm .phone { display: none; }
.au-lvm .phone rect { fill: none; stroke: #e2b85c; stroke-width: 1.7; } .au-lvm .phone path { stroke: #e2b85c; stroke-width: 1.7; stroke-linecap: round; }
.au-lvm .ring { fill: rgba(226,184,92,.10); stroke: rgba(226,184,92,.6); stroke-width: 1.3; transform-origin: 50% 50%; }
.au-lvm .disc { fill: #3fd9a0; transform-origin: 50% 50%; transform: scale(0); }
.au-lvm .tick { fill: none; stroke: #04140d; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; }
.au-lvm.wait .track, .au-lvm.wait .spin, .au-lvm.done .track, .au-lvm.done .spin { display: none; }
.au-lvm.wait .ring, .au-lvm.wait .phone { display: block; }
.au-lvm.wait .ring { animation: auLvBreath 2.2s ease-in-out infinite; }
.au-lvm.done .disc { animation: auLvPop .35s cubic-bezier(.2,1.5,.4,1) forwards; }
.au-lvm.done .tick { animation: auLvDraw .3s ease .2s forwards; }
@keyframes auLvRot { to { transform: rotate(360deg); } }
@keyframes auLvPop { to { transform: scale(1); } }
@keyframes auLvDraw { to { stroke-dashoffset: 0; } }
@keyframes auLvBreath { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .75; } }
@keyframes auLvIn { from { opacity: 0; } }
@keyframes auLvGlow { 0% { box-shadow: inset 0 0 0 1px rgba(63,217,160,.9), 0 0 0 0 rgba(63,217,160,.45); } 100% { box-shadow: inset 0 0 0 1px rgba(63,217,160,0), 0 0 0 10px rgba(63,217,160,0); } }
.au-lvtoast { position: fixed; right: 24px; bottom: 24px; z-index: 9999; display: flex; gap: 12px; align-items: center; max-width: 380px; padding: 12px 14px; border-radius: 14px;
  background: #1d2124; border: 1px solid rgba(63,217,160,.45); box-shadow: 0 20px 40px -10px rgba(0,0,0,.7); color: #e8eeec; font: 13px/1.35 var(--body, 'Onest', sans-serif);
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2,1.3,.4,1), opacity .25s; }
.au-lvtoast.in { transform: none; opacity: 1; pointer-events: auto; }
.au-lvtoast.wait { border-color: rgba(226,184,92,.5); }
.au-lvtoast b { display: block; } .au-lvtoast small { display: block; color: #8a9792; font-size: 12px; }
.au-lvtoast .au-lvm, .au-lvtoast .au-lvm svg { width: 28px; height: 28px; }
@media (max-width: 760px) { .au-lvtoast { left: 16px; right: 16px; bottom: 16px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .au-lvm *, .au-lvtoast, #autoView .au-lv-done { animation: none !important; transition: none !important; } }
