[hidden] { display: none !important; }
:root {
  --bg: #f4f5f7; --surface: #fff; --ink: #1d2433; --muted: #667085; --line: #e4e7ec;
  --brand: #1f4fd1; --brand-ink: #fff; --ok: #12805c; --warn: #b54708; --danger: #c0322b;
  --chip: #eef2ff; --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { background: #101828; color: #fff; position: sticky; top: 0; z-index: 50; }
.topbar .inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.brand small { font-weight: 500; opacity: .6; margin-left: 6px; }
.env { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #f79009; color: #101828; margin-left: 8px; vertical-align: middle; }
.env.prod { background: #32d583; }
nav.main { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; justify-content: center; }
nav.main a { color: #d0d5dd; padding: 8px 8px; border-radius: 8px; white-space: nowrap; }
nav.main a:hover { background: #1d2939; text-decoration: none; color: #fff; }
nav.main a.active { background: #344054; color: #fff; }
.who { display: flex; gap: 10px; align-items: center; color: #d0d5dd; font-size: 14px; }
.who button { background: none; border: 1px solid #475467; color: #d0d5dd; border-radius: 8px; padding: 5px 10px; cursor: pointer; }
main { max-width: 1200px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 24px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 28px 0 12px; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 30px; font-weight: 700; margin-top: 4px; }
.stat .sub { font-size: 13px; color: var(--muted); }
.stat .sub b { color: var(--ok); }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid; }
.flash.ok { background: #ecfdf3; border-color: #abefc6; color: #05603a; }
.flash.info { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }
.flash.warn { background: #fffaeb; border-color: #fedf89; color: #93370d; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); background: #fafbfc; }
tr:last-child td { border-bottom: none; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--surface); }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs a:hover { text-decoration: none; }
.count { font-size: 12px; opacity: .7; margin-left: 4px; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--chip); color: #3538cd; white-space: nowrap; }
.badge.NEW { background: #fef0c7; color: #93370d; }
.badge.IN_PROGRESS { background: #eff8ff; color: #175cd3; }
.badge.COMPLETED { background: #ecfdf3; color: #067647; }
.badge.CLOSED_BY_ADMIN { background: #f2f4f7; color: #475467; }
.badge.ADMIN { background: #fde7f3; color: #c11574; }
.badge.BLOCKED { background: #fef3f2; color: #b42318; }
.badge.MANAGER { background: #eef4ff; color: #3538cd; }
form.inline { display: inline; margin: 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.filters label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 4px; }
input[type=text], input[type=search], input[type=url], input[type=date], select { font: inherit; padding: 8px 10px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; min-width: 0; }
input[type=search] { min-width: 260px; }
button, .btn { font: inherit; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); cursor: pointer; display: inline-block; }
button.secondary, .btn.secondary { background: #fff; color: var(--ink); border-color: #d0d5dd; }
button.danger { background: #fff; color: var(--danger); border-color: #fda29b; }
button.small, .btn.small { padding: 4px 10px; font-size: 13px; }
.state { font-size: 13px; margin-right: 8px; }
.state.on { color: var(--ok); }
.state.off { color: var(--muted); }
.btn:hover { text-decoration: none; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 12px; }
.timeline li:last-child { border-bottom: none; }
.timeline time { color: var(--muted); font-size: 13px; min-width: 120px; }
.pager { display: flex; gap: 6px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.pager .btn { min-width: 36px; text-align: center; }
.pager-cur { background: var(--brand); color: #fff; cursor: default; }
.chart { width: 100%; height: 180px; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.login { max-width: 420px; margin: 10vh auto; text-align: center; }
.login .card { padding: 32px; }
.stack > * + * { margin-top: 10px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.section { margin-bottom: 28px; }
.notice { background: #fffaeb; border: 1px solid #fedf89; color: #93370d; border-radius: var(--radius); padding: 12px 16px; }
.who span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .topbar .brand small { display: none; } .who span { display: none; } }
@media (max-width: 640px) {
  .topbar .inner { gap: 8px; padding-top: 8px; }
  .who { margin-left: auto; }
  nav.main { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  input[type=search] { min-width: 0; width: 100%; }
  .filters label { width: 100%; }
  dl.kv { grid-template-columns: 1fr; }
}

.filters label.check { flex-direction: row; align-items: center; gap: 6px; }
textarea { font: inherit; padding: 8px 10px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; }
.tg-preview { background: #eef3f8; border-radius: 12px; padding: 12px 14px; max-width: 420px; white-space: normal; word-wrap: break-word; }
.tg-preview .tg-button { margin-top: 8px; background: #fff; border-radius: 8px; padding: 7px; text-align: center; font-size: 14px; color: var(--brand); }
.tg-preview .spoiler { background: #c7cbd1; color: transparent; border-radius: 3px; }
.tg-preview blockquote { margin: 6px 0; padding-left: 10px; border-left: 3px solid var(--brand); }
button[disabled] { opacity: .5; cursor: not-allowed; }

/* Visual editor for Telegram texts (editor.js) */
.rte { border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; overflow: hidden; }
.rte-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid #eaecf0; background: #f9fafb; }
.rte-btn { min-width: 32px; height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: none; color: #344054; font-size: 14px; cursor: pointer; }
.rte-btn:hover { background: #eef3ff; border-color: #c7d4f8; }
.rte-btn.on { background: #1f4fd1; color: #fff; }
.rte-area { padding: 10px 12px; font-size: 14px; line-height: 1.5; outline: none; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 520px; overflow-y: auto; }
.rte-area a { color: #1f4fd1; text-decoration: underline; }
.rte textarea.rte-code { border: 0; border-radius: 0; width: 100%; font-family: ui-monospace, monospace; font-size: 13px; padding: 10px 12px; min-height: 12em; }

/* Project Nika additions */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.form-col { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.form-col label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.form-col label.check { flex-direction: row; align-items: center; gap: 8px; }
.form-col input[type=email], .form-col input[type=password], .form-col input[type=text], .form-col input[type=number], .form-col select, .form-col textarea { width: 100%; }
input[type=email], input[type=password], input[type=number] { font: inherit; padding: 8px 10px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; min-width: 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 0; }
legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
.small { font-size: 13px; }
.login .form-col { text-align: left; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.regions { columns: 2; column-gap: 16px; }
.regions label { break-inside: avoid; }
textarea.mono, .pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.pre { white-space: pre-wrap; background: #f9fafb; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 4px 0 10px; }
@media (max-width: 640px) { .regions { columns: 1; } }
.lot-list { display: flex; flex-direction: column; gap: 10px; }
.lot-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; color: inherit; padding: 12px; }
.lot-row:hover { text-decoration: none; border-color: #b2c4f5; }
.lot-thumb img { width: 120px; height: 84px; object-fit: cover; border-radius: 8px; background: #e4e7ec; display: block; }
.lot-title { font-weight: 600; }
.lot-main > * + * { margin-top: 3px; }
.lot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.score { font-size: 26px; font-weight: 700; line-height: 1; }
.score small { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.score.inline { font-size: 22px; }
.lot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photo { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 8px; background: #e4e7ec; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo input { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; z-index: 1; }
.pre-line { white-space: pre-line; }
.warn-text { color: var(--warn); }
.post-text { width: 100%; }
@media (max-width: 900px) { .lot-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .lot-row { grid-template-columns: 84px 1fr; } .lot-thumb img { width: 84px; height: 64px; } .lot-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }
@media (max-width: 1360px) { .topbar .brand small { display: none; } nav.main a { padding: 8px 6px; font-size: 14px; } }

.lot-thumb { position: relative; display: block; }
.photo-count { position: absolute; right: 6px; bottom: 6px; background: rgba(16,24,40,.6); color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.lot-main { color: inherit; min-width: 0; }
.lot-main:hover { text-decoration: none; }
.lot-side .row-actions { justify-content: flex-end; flex-wrap: wrap; }
.pv-dialog { border: 0; border-radius: 14px; padding: 16px; max-width: 460px; width: calc(100% - 32px); }
.pv-dialog::backdrop { background: rgba(16,24,40,.45); }
.pv-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-bottom: 8px; }
.pv-photos img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.pv-photos img:first-child:nth-last-child(odd) { grid-column: 1 / -1; height: 200px; }
.pv-text { white-space: pre-line; margin-bottom: 10px; max-width: none; }

.lot-row.done { border-color: #12b76a; background: #f6fef9; }

.rj-form { display: flex; flex-direction: column; gap: 12px; }
.rj-reasons { display: flex; flex-direction: column; gap: 2px; }
.rj-reasons label { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.rj-reasons label:hover { background: #f2f4f7; }
.rj-reasons input { width: auto; margin: 0; }
.rj-form textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 64px; }
.ok-text { color: #067647; }
.nowrap { white-space: nowrap; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.checklist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.checklist li { display: flex; gap: 8px; align-items: baseline; }
.ch-tabs { margin-bottom: 6px; }
.ch-tabs a { font-size: 14px; }
.tabs a.warn-tab { color: var(--warn); }
.filters-end { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pub-to { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-right: 6px; }
.pub-to .check { font-size: 12px; }
form.assign select { padding: 4px 6px; font-size: 13px; }
.card.empty { align-items: flex-start; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: -8px 0 20px; }
.subnav a { padding: 6px 12px; border-radius: 99px; color: inherit; border: 1px solid var(--line, #e4e7ec); background: #fff; font-size: 14px; }
.subnav a.active { background: #101828; color: #fff; border-color: #101828; }
.hint { color: #667085; font-size: 13px; margin: 2px 0 0; }
.wizard { counter-reset: step; display: grid; gap: 12px; }
.wizard .step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.wizard .num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #eef2ff; color: #3538cd; }
.wizard .step.done .num { background: #dcfae6; color: #067647; }
.wizard .step.todo .num { background: #fef0c7; color: #93370d; }
a.mon-card { display: flex; flex-direction: column; gap: 4px; color: inherit; }
a.mon-card:hover { text-decoration: none; border-color: #98a2b3; }
.wizard .step > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wizard .step ol { margin: 0; padding-left: 18px; }
.ch-progress { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; width: 100%; box-sizing: border-box; }
.big-tabs a { font-size: 15px; padding: 8px 18px; }
.num-input { width: 90px; }
.lot-side .decided { text-align: right; display: flex; flex-direction: column; gap: 2px; align-items: flex-end; max-width: 340px; }
/* dashboard */
.viz { --s-published: #2a78d6; --s-rejected: #eb6834; --s-expired: #6250d6; --s-line: #344054; }
.chart-wrap { position: relative; margin-top: 12px; }
.chart-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-wrap .grid { stroke: #eaecf0; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-wrap .tick { fill: #667085; font-size: 11px; }
.chart-wrap .s-published { fill: var(--s-published); }
.chart-wrap .s-rejected { fill: var(--s-rejected); }
.chart-wrap .s-expired { fill: var(--s-expired); }
.chart-wrap .arrived { fill: none; stroke: var(--s-line); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart-wrap .xhair { stroke: #98a2b3; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart-wrap .hit { fill: transparent; cursor: crosshair; }
.chart-wrap .tip { position: absolute; background: #101828; color: #fff; font-size: 12px; line-height: 1.5; padding: 8px 10px; border-radius: 8px; pointer-events: none; white-space: nowrap; z-index: 2; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; color: #344054; }
.legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .sw.line { height: 2px; vertical-align: 3px; background: var(--s-line); }
.legend .sw.s-published { background: var(--s-published); }
.legend .sw.s-rejected { background: var(--s-rejected); }
.legend .sw.s-expired { background: var(--s-expired); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; align-self: end; }
.seg button { background: #fff; color: var(--ink); border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 8px 12px; font-size: 13px; }
.seg button:last-child { border-right: 0; }
.seg button.active { background: var(--ink); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; color: inherit; }
a.tile:hover { text-decoration: none; border-color: #98a2b3; }
.tile-n { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile-l { font-size: 13px; color: var(--muted); }
.tile-warn .tile-n { color: var(--warn); }
.attention { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.attention a { color: inherit; display: block; padding: 8px 12px; border-radius: 8px; background: #fffaeb; }
.attention li.bad a { background: #fef3f2; }
.attention .att-n { font-weight: 700; display: inline-block; min-width: 28px; }
.table-wrap.flat { border: 0; margin-top: 8px; }
.bars { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.bars a { display: grid; grid-template-columns: minmax(140px, 1.2fr) 2fr auto; gap: 10px; align-items: center; color: inherit; font-size: 13px; }
.bars a:hover { text-decoration: none; }
.bar-track { background: #f2f4f7; border-radius: 4px; height: 10px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--s-rejected, #eb6834); border-radius: 0 4px 4px 0; }
.bar-fill.expired { background: #6250d6; }
.bar-n { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 700px) { .bars a { grid-template-columns: 1fr auto; } .bar-track { grid-column: 1 / -1; grid-row: 2; } }
.kind { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 99px; margin: 0 6px 0 0; vertical-align: 1px; white-space: nowrap; }
.kind-eng { background: #dcfae6; color: #067647; }
.kind-dutch { background: #fef0c7; color: #b54708; }
/* two-block preview: Telegram + OLX */
.pv-two { max-width: 520px; padding: 0; display: none; }
.pv-two[open] { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.pv-two .pv-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pv-two .pv-head nav { margin-left: auto; }
.pv-two .pv-scroll { overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 18px; }
.pv-two > .row-actions { padding: 10px 16px; border-top: 1px solid var(--line); }
.pv-label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pv-chan { font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 99px; color: #fff; }
.pv-chan.tg { background: #229ed9; }
.pv-chan.olx { background: #002f34; }
.olx-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.olx-title { font-size: 17px; font-weight: 600; }
.olx-price { font-size: 20px; font-weight: 700; }
.olx-desc { white-space: pre-line; font-size: 14px; line-height: 1.5; border-top: 1px solid var(--line); padding-top: 8px; }
.json-view { max-height: 420px; overflow: auto; font-size: 11px; }
.pv-photos.many { grid-template-columns: repeat(3, 1fr); }
.pv-photos.many img { height: 90px; }
.pv-photos.many img:first-child:nth-last-child(odd) { grid-column: auto; height: 90px; }
.pv-photos.many img:first-child { grid-column: 1 / -1; height: 180px; }
.olx-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.olx-strip img { width: 100%; height: 64px; object-fit: cover; border-radius: 6px; }
.pub-item { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.pub-log { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 2px; }
.pub-post.is-deleted { opacity: .55; }
.pub-post.is-deleted .tg-preview { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.photos.sortable .photo { cursor: grab; user-select: none; -webkit-user-select: none; }
.photos.sortable .photo.dragging { opacity: .5; cursor: grabbing; }
.photos.sortable .photo.lifted { transform: scale(1.04); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.photo.off img { filter: grayscale(1); opacity: .45; }
.photo-tag { position: absolute; right: 6px; bottom: 6px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: rgba(16,24,40,.65); color: #fff; }
.photo-tag:empty { display: none; }
.photo-tag.main { background: #f79009; }
.photo-tag.tg { background: #229ed9; }
.photo-tag.over { background: #b42318; }
.own-tag { position: absolute; left: 30px; top: 6px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: #7a5af8; color: #fff; }
.photo-del { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; padding: 0; border-radius: 99px; border: 0; background: rgba(16,24,40,.7); color: #fff; font-size: 13px; line-height: 24px; cursor: pointer; }
.photo-del:hover { background: #b42318; }
.upload-row { align-items: center; }
.photo-hint { margin: 0; }
/* visual editor for Telegram posts (static/tg-editor.js) */
.tge { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.tge:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,79,209,.12); }
.tge-bar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; border-bottom: 1px solid var(--line); background: #f9fafb; }
.tge-btn { background: #fff; color: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; font-size: 13px; min-width: 32px; cursor: pointer; line-height: 1.4; }
.tge-btn:hover:not(:disabled) { background: #eef3f8; }
.tge-btn:disabled { opacity: .4; cursor: default; }
.tge-btn.tge-right { margin-left: auto; }
.tge-btn.on { background: #eef3f8; border-color: var(--brand); }
.tge-hint { flex-basis: 100%; }
.tge-hint:empty { display: none; }
.tge-link { display: flex; gap: 6px; padding: 6px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tge-link[hidden] { display: none; }
.tge-link input { flex: 1; min-width: 200px; }
.tge-area { max-width: none; margin: 10px; min-height: 160px; outline: none; white-space: pre-wrap; cursor: text; }
.tge-area a { color: var(--brand); }
.tge-code { width: 100%; border: 0; border-radius: 0; min-height: 260px; }
.text-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pv-edit-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
.pv-edit-bar:not(:has(:not([hidden]))) { display: none; }
.pv-editor .tge-area { min-height: 220px; }
/* «Налаштування → OLX» */
.proc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; }
input.inline-num { width: 4.5em; display: inline-block; padding: 2px 6px; text-align: center; }
fieldset { border: 0; padding: 0; margin: 0; }
.olx-form label:not(.check) { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.olx-form label:not(.check) input, .olx-form textarea { width: 100%; }
/* OLX block on the lot card */
.olx-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; }
.olx-fields label.olx-missing { color: #b42318; }
.olx-fields label.olx-missing select, .olx-fields label.olx-missing input { border-color: #f04438; }
.olx-cat.olx-warn { border-left: 3px solid #f79009; padding-left: 10px; }
.olx-problems { background: #fff6ed; border: 1px solid #fedf89; border-radius: 10px; padding: 8px 12px; }
.olx-problems ul { margin: 4px 0 0; padding-left: 18px; }
.olx-payload { max-height: 320px; overflow: auto; white-space: pre-wrap; font-size: 12px; background: #f9fafb; padding: 8px; border-radius: 8px; }
.ok-text { color: #067647; }
.olx-form .olx-bad { border-color: #f04438; }
.olx-live:empty { display: none; }
