/* AutoPoster v2 — the glass look of the bots' admin (autowheelfit.com/admin), layered over ../styles.css.
   Only looks change here: the markup app.js renders and every action stay exactly as in the classic portal. */
body.glass {
  color-scheme: light;
  --glass: rgba(255, 252, 245, .34);
  --glass-strong: rgba(255, 252, 245, .52);
  --glass-solid: rgba(255, 253, 248, .72);
  --edge: rgba(255, 255, 255, .55);
  --dark: #1f1e1b;
  --accent: #f4c400;
  --accent-soft: rgba(244, 196, 0, .22);
  --radius: 26px;
  --shadow: 0 24px 60px -24px rgba(40, 30, 10, .35);
  /* the classic tokens, re-pointed: every block that used them turns to glass */
  --canvas: transparent;
  --surface: var(--glass-solid);
  --surface-soft: rgba(255, 255, 255, .62);
  --ink: #1d1b17;
  --muted: rgba(29, 27, 23, .6);
  --line: rgba(255, 255, 255, .6);
  --line-strong: rgba(29, 27, 23, .16);
  --primary: #1f1e1b;
  --primary-hover: #000;
  --green: #3f8f5a;
  --green-soft: rgba(63, 143, 90, .14);
  --amber: #9a6a07;
  --amber-soft: rgba(244, 196, 0, .2);
  --red: #c0532f;
  --red-soft: rgba(192, 83, 47, .13);
  --sidebar: transparent;
  --sidebar-muted: rgba(29, 27, 23, .6);
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background: #c9b79c url(bg.webp?v=1) center / cover fixed;
}
body.glass::before {            /* the photo, blurred and warmed */
  content: ""; position: fixed; inset: -40px; z-index: -2;
  background: inherit; filter: blur(34px) saturate(1.15) brightness(1.08);
}
body.glass::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1200px 700px at 15% 0%, rgba(255, 236, 196, .55), transparent 60%),
              radial-gradient(900px 600px at 100% 100%, rgba(255, 214, 150, .35), transparent 60%),
              linear-gradient(180deg, rgba(246, 236, 218, .45), rgba(222, 205, 178, .35));
}
.glass h1, .glass h2, .glass h3 { font-family: Outfit, Inter, sans-serif; font-weight: 400; letter-spacing: -.2px; }

/* ---------- the shell: one glass sheet, the menu as a pill bar on top */
.glass .app-shell {
  display: block; min-height: calc(100vh - 2 * clamp(10px, 2.4vw, 32px));
  margin: clamp(10px, 2.4vw, 32px); padding: clamp(14px, 2vw, 26px); border-radius: 38px;
  background: rgba(255, 250, 240, .22); border: 1px solid var(--edge);
  backdrop-filter: blur(26px) saturate(1.2); -webkit-backdrop-filter: blur(26px) saturate(1.2);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.glass .app-shell[hidden] { display: none; }
.glass .sidebar {
  position: static; height: auto; display: flex; flex-direction: row; align-items: center; gap: 12px;
  padding: 0; background: transparent; color: var(--ink);
}
.glass .app-brand {
  flex-shrink: 0; height: 40px; padding: 0 16px 0 6px; gap: 9px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--edge);
  font: 600 15px Outfit, sans-serif; letter-spacing: .2px;
}
.glass .app-brand img { width: 28px; height: 28px; border-radius: 50%; }
.glass .side-nav {
  display: flex; gap: 2px; min-width: 0; margin-left: auto; padding: 4px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--edge); overflow-x: auto; scrollbar-width: none;
}
.glass .side-nav::-webkit-scrollbar { display: none; }
.glass .side-nav a {
  min-height: 32px; height: 32px; gap: 7px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  color: var(--ink); font: 500 13px Inter, sans-serif; transition: background .25s, color .25s;
}
.glass .side-nav a:hover { background: rgba(255, 255, 255, .55); color: var(--ink); }
.glass .side-nav a.active { background: var(--dark); color: #fff; }
.glass .side-nav svg { width: 15px; height: 15px; }
.glass .side-nav .nav-attention { margin-left: 0; color: var(--accent); }
.glass .sidebar-account {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 4px 0 4px; height: 40px;
  border: 1px solid var(--edge); border-top: 1px solid var(--edge); border-radius: 999px; background: var(--glass-strong);
}
.glass .account-copy { max-width: 160px; }
.glass .account-copy small { color: var(--muted); }
.glass .avatar { width: 30px; height: 30px; background: var(--dark); color: var(--accent); font: 600 11px Outfit, sans-serif; }
.glass .sidebar .icon-button { width: 30px; height: 30px; border-radius: 50%; color: var(--ink); }
.glass .sidebar .icon-button:hover { background: rgba(255, 255, 255, .7); }
.glass .sidebar-scrim, .glass .mobile-menu { display: none !important; }

/* ---------- heading row */
.glass .workspace { padding: 0; }
.glass .topbar { min-height: 0; margin: 26px 4px 14px; border: 0; align-items: flex-end; flex-wrap: wrap; }
.glass .page-title p { color: var(--muted); font-size: 13px; }
.glass .page-title h1 { font: 300 clamp(28px, 3.4vw, 44px)/1.08 Outfit, sans-serif; letter-spacing: -.5px; white-space: normal; }
.glass .page { width: 100%; max-width: 1240px; padding: 10px 4px 24px; }

/* ---------- controls: pills */
.glass .button {
  min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--edge);
  background: rgba(255, 255, 255, .7); color: var(--ink); font: 600 13px Inter, sans-serif;
  transition: transform .15s, background .2s, opacity .2s;
}
.glass .button:hover { background: #fff; }
.glass .button:active { transform: scale(.97); }
.glass .button.primary { background: var(--dark); border-color: var(--dark); color: #fff; }
.glass .button.primary:hover { background: #000; border-color: #000; }
.glass .button.danger { color: var(--red); border-color: rgba(192, 83, 47, .35); }
.glass .button.ghost { background: transparent; }
.glass .icon-button { border-radius: 50%; border-color: var(--edge); background: rgba(255, 255, 255, .7); }
.glass .text-button { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.glass input, .glass select {
  height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--edge);
  background: rgba(255, 255, 255, .7); font: 500 14px Inter, sans-serif;
}
.glass textarea { border-radius: 20px; border: 1px solid var(--edge); background: rgba(255, 255, 255, .7); padding: 12px 16px; }
/* Own chevron 18px in from the rounded edge: the native arrow sat almost on the edge (owner 2026-11-02). */
.glass select {
  -webkit-appearance: none; appearance: none; padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1b17' stroke-opacity='.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 16px 16px;
}
.glass select[multiple] { background-image: none; padding-right: 16px; }
.glass input:focus, .glass select:focus, .glass textarea:focus { border-color: var(--dark); background-color: #fff; }
.glass input[type="checkbox"], .glass input[type="radio"] { width: auto; height: auto; padding: 0; border-radius: 4px; accent-color: var(--dark); }
.glass .field > span { color: var(--ink); font-weight: 500; }
/* Numbers sized to the number (owner 2026-11-02: «нет смысла в таких широких окнах… выглядит не профессионально»). */
.glass .field.is-num { align-content: start; }
.glass .field.is-num > input, .glass .field.is-num .pf-input { width: 132px; max-width: 100%; }
.glass .field.is-num .pf-input input { width: 100%; padding-right: 44px; }
.glass .field.is-num.is-date > input { width: 190px; }
.glass .field.is-num.is-id .secret-field { width: 260px; max-width: 100%; }
.glass .field.is-num small { max-width: 340px; }
.glass .form-grid.pf-nums { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 32px; }
.glass .pf-nums > .field { flex: 0 1 auto; max-width: 300px; }
.glass .pf-nums > .field.is-short select { width: 220px; max-width: 100%; }
.glass .pf-nums > .span-2, .glass .pf-nums > .toggle-row { flex: 1 1 100%; max-width: none; }
.glass .switch input:checked + span { background: var(--dark); }

/* ---------- blocks: glass cards */
.glass .settings-group, .glass .client-list, .glass .job-progress-card, .glass .integration-row,
.glass .setup-confirmation, .glass .run-result-card, .glass .summary-strip, .glass .event-list,
.glass .product-template-card, .glass .product-source-card, .glass .product-card-result, .glass .product-card-job,
.glass .drom-reasons, .glass .drom-sample-list, .glass .run-status-panel {
  border-radius: var(--radius); background: var(--glass); border: 1px solid var(--edge);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}
.glass .settings-group { padding: 20px 22px; }
.glass .settings-group + .settings-group { margin-top: 16px; border-top: 1px solid var(--edge); }
.glass .toggle-row { border-radius: 20px; background: rgba(255, 255, 255, .5); border: 1px solid var(--edge); }
.glass .summary-item { border-radius: 20px; background: rgba(255, 255, 255, .55); border: 1px solid var(--edge); }
.glass .notice { border-radius: 20px; border: 1px solid var(--edge); background: rgba(255, 255, 255, .55); }
.glass .notice.warn { background: var(--amber-soft); }
.glass .eyebrow { color: var(--muted); letter-spacing: 1.2px; }

/* ---------- sign-in */
.glass .auth-shell { background: transparent; }
.glass .auth-brand { height: 44px; padding: 0 18px 0 6px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--edge); width: max-content; }
.glass .auth-brand img { width: 32px; height: 32px; border-radius: 50%; }
.glass .auth-panel {
  padding: 30px; border-radius: 32px; background: var(--glass-strong); border: 1px solid var(--edge);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); box-shadow: var(--shadow);
}
.glass .auth-copy h1 { font: 300 32px Outfit, sans-serif; }

/* ---------- windows and messages */
.glass .modal-backdrop { background: rgba(30, 25, 15, .35); backdrop-filter: blur(3px); }
.glass .modal { border-radius: 30px; border: 1px solid var(--edge); background: rgba(255, 252, 245, .94); box-shadow: var(--shadow); }
.glass .toast { border-radius: 999px; background: var(--dark); color: #fff; box-shadow: var(--shadow); }

/* ---------- narrow screens: brand and account on one row, the menu below */
@media (max-width: 1480px) {
  .glass .sidebar { flex-wrap: wrap; position: static; z-index: auto; width: auto; transform: none; transition: none; }
  .glass .side-nav { order: 3; width: 100%; margin-left: 0; }
  .glass .sidebar-account { margin-left: auto; }
}
@media (max-width: 640px) {
  .glass .app-shell { margin: 8px; padding: 12px; border-radius: 28px; }
  .glass .account-copy { display: none; }
  .glass .page-title h1 { font-size: 26px; }
  .glass .workspace { padding: 0; }
  .glass .topbar { margin: 18px 2px 10px; }
}
@media (prefers-reduced-motion: reduce) { .glass * { transition: none !important; } }

/* ---------- search boxes keep room for their icon */
.glass .search-box input { padding-left: 44px; }
.glass .search-box svg { left: 16px; color: var(--muted); }

/* ---------- catalog of cards (stage 2) */
.glass .cat-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.glass .cat-toolbar .search-box { width: min(340px, 100%); }
.glass .cat-toolbar select { width: auto; min-width: 150px; }
/* a row of tabs wider than a phone scrolls inside itself (it stretched the whole page to 732 px, owner 2026-11-03) */
.glass .cat-filters { display: flex; gap: 2px; max-width: 100%; padding: 4px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--edge); overflow-x: auto; scrollbar-width: none; }
.glass .cat-filters::-webkit-scrollbar { display: none; }
.glass .cat-filter { flex-shrink: 0; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 500 13px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.glass .cat-filter:hover { background: rgba(255, 255, 255, .6); }
.glass .cat-filter.on { background: var(--dark); color: #fff; }
.glass .cat-count { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.glass .cat-note { margin: 12px 4px 16px; color: var(--muted); font-size: 12px; }
.glass .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.glass .cat-tile {
  display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 24px; text-align: left; cursor: pointer;
  background: var(--glass); border: 1px solid var(--edge); color: var(--ink); font: inherit;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, background .2s;
}
.glass .cat-tile:hover { transform: translateY(-3px); background: rgba(255, 253, 248, .6); box-shadow: var(--shadow); }
.glass .cat-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 16px; background: #fff; overflow: hidden; }
.glass .cat-photo img { width: 100%; height: 100%; object-fit: contain; }
.glass .cat-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 500 15px Outfit, sans-serif; margin-top: 4px; }
.glass .cat-colour { font: 600 11px Inter, sans-serif; padding: 2px 8px; border-radius: 999px; background: var(--dark); color: var(--accent); }
.glass .cat-size { color: var(--muted); font-size: 12px; line-height: 1.35; }
.glass .cat-price { font: 400 17px Outfit, sans-serif; }
.glass .cat-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: auto; font-size: 12px; }
.glass .cat-stock { margin-right: auto; }  /* stock left, the VK/Drom/Avito chips right — on a phone they move to the next line instead of out of the card */
.glass .cat-stock { color: var(--muted); }
.glass .cat-stock.low { color: var(--amber); font-weight: 600; }
.glass .cat-chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(29, 27, 23, .08); color: var(--muted); }
.glass .cat-chip.ok { background: rgba(63, 143, 90, .14); color: var(--green); }
.glass .cat-detail { display: grid; gap: 14px; }
.glass .cat-detail-photo { width: 100%; max-height: 360px; object-fit: contain; border-radius: 20px; background: #fff; }
.glass .cat-detail-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }  /* the card's whole photo set (2026-11-05) */
.glass .cat-detail-strip button { flex: 0 0 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 12px; background: #fff; overflow: hidden; cursor: pointer; }
.glass .cat-detail-strip button.on { border-color: var(--accent); }
.glass .cat-detail-strip img { width: 100%; height: 100%; object-fit: contain; display: block; }
.glass .cat-params { width: 100%; border-collapse: collapse; font-size: 14px; }
.glass .cat-params td { padding: 8px 4px; border-top: 1px solid rgba(29, 27, 23, .08); }
.glass .cat-params td:first-child { color: var(--muted); width: 40%; }
@media (max-width: 640px) {
  .glass .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .glass .cat-count { margin-left: 0; }
  .glass .cat-toolbar select { flex: 1 1 140px; min-width: 0; padding-left: 14px; padding-right: 30px; font-size: 13px; }  /* two per row: three squeezed «Все диаметры» under the arrow */
}

/* ---------- «Связка с Avito» (stage 2) */
.glass .cat-filter b { margin-left: 4px; font-weight: 600; opacity: .7; }
.glass .link-list { display: grid; gap: 20px; }
.glass .link-row {
  display: grid; grid-template-columns: minmax(230px, .85fr) minmax(0, 2fr); gap: 28px; padding: 24px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--edge); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.glass .link-ad { display: grid; gap: 6px; align-content: start; }
.glass .link-ad b { font: 500 15px Outfit, sans-serif; }
.glass .link-ad small, .glass .link-card small { color: var(--muted); font-size: 12px; }
.glass .link-ad a, .glass .link-card a { color: var(--ink); font-size: 12px; text-underline-offset: 3px; }
.glass .link-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.glass .link-candidates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 14px; width: 100%; }
.glass .link-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .7); border: 1px solid var(--edge); }
.glass .link-card .cat-photo { aspect-ratio: 1; border-radius: 12px; }
.glass .link-card-copy { display: grid; gap: 3px; min-width: 0; }
.glass .link-card .button { grid-column: 1 / -1; }
.glass .link-card.empty { display: block; color: var(--muted); font-size: 13px; }
.glass .link-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.glass .link-actions p { width: 100%; margin: 0; color: var(--muted); font-size: 13px; }
.glass .link-warn { grid-column: 1 / -1; margin: 0; color: var(--red); font-size: 13px; }
.glass .button.compact { min-height: 34px; padding: 0 14px; }
.glass .link-original-frame { display: flex; justify-content: center; align-items: center; min-height: 180px; padding: 12px; margin: 8px 0; border-radius: 16px; background: rgba(255,255,255,.75); }
.glass .link-ad-photo { display: block; width: auto; height: auto; max-width: 100%; max-height: 300px; object-fit: contain; border-radius: 8px; }
.glass .link-original-frame.is-thumbnail .link-ad-photo { max-width: 140px; max-height: 105px; }
.glass .link-photo-zoom { display: flex; justify-content: center; padding: 0; border: 0; background: transparent; border-radius: 8px; cursor: zoom-in; max-width: 100%; }
.glass .link-card .link-photo-zoom { width: 100%; height: 100%; }
.glass .link-photo-view { display: flex; justify-content: center; }
.glass .link-photo-view img { display: block; max-width: 100%; max-height: 75vh; width: auto; height: auto; object-fit: contain; }
.glass .link-photo-missing { display: grid; justify-items: center; gap: 10px; color: var(--muted); text-align: center; }
.glass .link-photo-missing svg { width: 28px; height: 28px; }
.glass .link-photo-quality { padding-bottom: 6px; }
.glass .link-column-title { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.glass .link-column-title > span { padding: 2px 7px; border-radius: 8px; background: rgba(255,255,255,.7); color: var(--muted); }
.glass .link-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; margin: 6px 0; font-size: 11px; color: var(--muted); }
.glass .link-specs b { display: block; font-size: 13px; font-weight: 500; color: var(--ink); }
.glass .link-card .link-price { font-size: 14px; font-weight: 500; color: var(--ink); }
.glass .link-original-specs { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 10px 0; font-size: 11px; color: var(--muted); }
.glass .link-original-specs b { display: block; font-size: 13px; color: var(--ink); }
.glass .link-original-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 2px; }
.glass .link-original-actions .button { text-decoration: none; cursor: pointer; }
.glass .link-comparison-note { width: 100%; padding: 12px 14px; border-radius: 12px; background: rgba(255,236,196,.4); color: #805219; font-size: 13px; }
.glass .link-comparison-note p { margin: 0; }
.glass .link-comparison-note small { display: block; margin-top: 6px; color: var(--muted); }
.glass .link-decision-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; width: 100%; border-top: 1px solid rgba(0,0,0,.08); padding-top: 14px; color: var(--muted); font-size: 12px; }
.glass .reconcile-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 20px 0; }
.glass .reconcile-stats > div { display: grid; gap: 5px; padding: 16px 20px; border: 1px solid var(--edge); border-radius: 18px; background: var(--glass); }
.glass .reconcile-stats b { font-size: 26px; font-weight: 500; }
.glass .reconcile-stats span { font-size: 12px; color: var(--muted); }
.glass .reconcile-stats .needs-attention b { color: #986322; }
.glass .reconcile-navigation { padding: 8px 16px 16px; border-radius: 20px; background: rgba(255,255,255,.5); border: 1px solid var(--edge); }
.glass .reconcile-groups { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,.08); }
.glass .reconcile-groups button { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.glass .reconcile-groups button.on { background: var(--ink); color: white; }
.glass .reconcile-groups b { font-size: 11px; font-weight: 500; opacity: .75; }
.glass .reconcile-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 14px; }
.glass .reconcile-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.glass .reconcile-toolbar .cat-search { width: 300px; max-width: 100%; margin: 0; }
.glass .reconcile-help { margin: 16px 2px 20px; max-width: 1000px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.glass .reconcile-help span { display: block; font-size: 11px; margin-top: 4px; }
@media (max-width: 880px) { .glass .link-row { grid-template-columns: 1fr; } .glass .link-original-frame { max-width: 360px; } }
@media (max-width: 540px) { .glass .link-row { padding: 16px; gap: 24px; } .glass .reconcile-stats { gap: 6px; } .glass .reconcile-stats > div { padding: 12px; } .glass .reconcile-stats b { font-size: 22px; } .glass .reconcile-groups button { font-size: 12px; padding: 10px; } .glass .reconcile-toolbar .cat-search { width: 100%; } }

/* ---------- «Обзор» */
.glass .ov-card {
  padding: 18px 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--edge);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
  animation: ov-rise .6s cubic-bezier(.2, .8, .2, 1) both;
}
.glass .ov-card header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.glass .ov-card header .cat-filters { flex-shrink: 0; }
.glass .ov-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 16px Outfit, sans-serif; }
.glass .ov-card h3 svg { width: 17px; height: 17px; }
.glass .ov-rows { width: 100%; border-collapse: collapse; font-size: 13px; }
.glass .ov-rows td { padding: 6px 2px; border-top: 1px solid rgba(255, 255, 255, .6); }
.glass .ov-rows td:last-child { text-align: right; font: 400 15px Outfit, sans-serif; }
.glass .ov-rows td:first-child { color: var(--muted); }
.glass .ov-chip { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(29, 27, 23, .08); color: var(--muted); white-space: nowrap; }
.glass .ov-chip.ok { background: rgba(63, 143, 90, .14); color: var(--green); }
.glass .ov-chip.bad { background: rgba(192, 83, 47, .13); color: var(--red); }
.glass .ov-metric-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); }
.glass .ov-metric-head b { font: 300 26px Outfit, sans-serif; color: var(--ink); }
.glass .ov-bars { display: flex; align-items: flex-end; gap: 5px; height: 96px; margin-top: 10px; }
.glass .ov-bars span { flex: 1; min-width: 4px; border-radius: 999px; background: var(--dark); transform-origin: bottom; animation: ov-grow .8s cubic-bezier(.2, .8, .2, 1) both; }
.glass .ov-bars span.today { background: var(--accent); }
/* charts (owner 2026-11-01): added #3b6fb6 above the line, removed #d0642c below it — a pair that stays apart for
   colour-blind readers; single-series charts in ink. Text never takes the series colour. */
.glass { --ov-add: #3b6fb6; --ov-remove: #d0642c; }
.glass .ov-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 2px 0 16px; }
.glass .ov-kpi { position: relative; overflow: hidden; padding: 16px 18px 36px; border-radius: 22px; background: var(--glass); border: 1px solid var(--edge);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65); animation: ov-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.glass .ov-kpi small { display: block; color: var(--muted); font-size: 12px; }
.glass .ov-kpi b { display: block; margin: 8px 0 4px; font: 300 clamp(28px, 2.6vw, 38px)/1 Outfit, sans-serif; letter-spacing: -.5px; }
.glass .ov-kpi > span { display: block; color: var(--muted); font-size: 11.5px; position: relative; z-index: 1; }
.glass .ov-spark { position: absolute; left: 0; right: 0; bottom: 6px; width: 100%; height: 24px; }
.glass .ov-spark polyline { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; opacity: .55; }
.glass .ov-spark.add polyline { stroke: var(--ov-add); opacity: 1; }
.glass .ov-spark.remove polyline { stroke: var(--ov-remove); opacity: 1; }
.glass .ov-top { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); gap: 16px; margin-bottom: 16px; }
.glass .ov-lower { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.glass .ov-card h4 { margin: 22px 0 8px; font: 500 13px Inter, sans-serif; color: var(--muted); }
.glass .ov-card .cat-filters { gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .45); }
.glass .ov-card .cat-filter { height: 28px; padding: 0 12px; font-size: 12px; }
.glass .ov-legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.glass .ov-legend span { display: inline-flex; align-items: center; gap: 6px; }
.glass .ov-legend b { color: var(--ink); font-weight: 600; }
.glass .ov-legend i, .glass .ov-tip span i { width: 10px; height: 10px; border-radius: 3px; background: var(--ink); display: inline-block; }
.glass .ov-legend .add i, .glass .ov-tip .add i { background: var(--ov-add); }
.glass .ov-legend .remove i, .glass .ov-tip .remove i { background: var(--ov-remove); }
.glass .ov-chart { position: relative; }
.glass .ov-flow { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; height: 220px;
  background: linear-gradient(rgba(29, 27, 23, .18), rgba(29, 27, 23, .18)) center / 100% 1px no-repeat; }
.glass .ov-col { display: flex; flex-direction: column; min-width: 0; cursor: default; border-radius: 6px; }
.glass .ov-col.on { background: rgba(255, 255, 255, .45); }
.glass .ov-flow .ov-up, .glass .ov-flow .ov-down { flex: 1; display: flex; padding: 0 12%; }
.glass .ov-flow .ov-up { align-items: flex-end; padding-bottom: 1px; }
.glass .ov-flow .ov-down { align-items: flex-start; padding-top: 1px; }
.glass .ov-flow i { position: relative; width: 100%; min-height: 3px; display: block; transform-origin: bottom; animation: ov-grow .7s cubic-bezier(.2, .8, .2, 1) both; }
.glass .ov-up i { background: var(--ov-add); border-radius: 4px 4px 1px 1px; }
.glass .ov-down i { background: var(--ov-remove); border-radius: 1px 1px 4px 4px; transform-origin: top; }
.glass .ov-flow em { position: absolute; left: 50%; transform: translateX(-50%); font: 600 11px Inter, sans-serif; font-style: normal; color: var(--ink); white-space: nowrap; }
.glass .ov-up em { bottom: calc(100% + 3px); }
.glass .ov-down em { top: calc(100% + 3px); }
.glass .ov-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }
.glass .ov-line { position: relative; height: 92px; }
.glass .ov-line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.glass .ov-line polyline { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.glass .ov-line .ov-area { fill: rgba(29, 27, 23, .07); }
.glass .ov-scale { position: absolute; left: 0; font-size: 10.5px; color: var(--muted); background: rgba(255, 252, 245, .6); padding: 0 4px; border-radius: 4px; }
.glass .ov-scale.top { top: -2px; } .glass .ov-scale.bottom { bottom: -2px; }
.glass .ov-hits { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.glass .ov-hits span.on { box-shadow: inset 1px 0 0 rgba(29, 27, 23, .35); }
.glass .ov-bars2 { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; height: 110px; }
.glass .ov-bars2 .ov-col { justify-content: flex-end; padding: 0 12%; }
.glass .ov-bars2 i { display: block; width: 100%; background: var(--ink); border-radius: 4px 4px 1px 1px; opacity: .8; transform-origin: bottom; animation: ov-grow .7s cubic-bezier(.2, .8, .2, 1) both; }
.glass .ov-tip { position: absolute; top: 0; z-index: 5; transform: translate(-50%, -8px); min-width: 170px; padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 253, 248, .96); box-shadow: 0 14px 34px -12px rgba(40, 30, 10, .4); font-size: 12px; pointer-events: none; }
.glass .ov-tip b { display: block; margin-bottom: 6px; font-weight: 600; }
.glass .ov-tip span { display: flex; align-items: center; gap: 6px; padding: 2px 0; color: var(--muted); }
.glass .ov-tip em { margin-left: auto; font-style: normal; color: var(--ink); font-weight: 600; }
.glass .ov-total { font: 300 24px Outfit, sans-serif; }
.glass .ov-platforms, .glass .ov-log, .glass .ov-attn, .glass .ov-hbars { list-style: none; margin: 0; padding: 0; }
.glass .ov-platforms li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .6); }
.glass .ov-platforms li:first-child { border-top: 0; }
.glass .ov-platforms svg { width: 17px; height: 17px; opacity: .7; flex: none; }
.glass .ov-platforms b { display: block; font-weight: 500; font-size: 14px; }
.glass .ov-platforms small, .glass .ov-attn small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.glass .ov-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: rgba(29, 27, 23, .25); }
.glass .ov-dot.ok { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.glass .ov-dot.bad { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.glass .ov-dot.work { background: #2f6fed; box-shadow: 0 0 0 4px rgba(47, 111, 237, .16); animation: ov-pulse 1.6s ease-in-out infinite; }
@keyframes ov-pulse { 50% { box-shadow: 0 0 0 7px rgba(47, 111, 237, .05); } }
.glass .ov-platforms li > span:last-child { flex: 1; min-width: 0; }
.glass .ov-progress { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: rgba(29, 27, 23, .08); overflow: hidden; }
.glass .ov-progress b { display: block; height: 100%; border-radius: 4px; background: #2f6fed; }
.glass .ov-metric-head small { font: 400 13px Outfit, sans-serif; color: var(--muted); }
.glass .ov-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.glass .ov-photo .ov-bars { height: 44px; }
.glass .ov-roll.up { animation: ov-roll-up .7s cubic-bezier(.2, .8, .2, 1); }
.glass .ov-roll.down { animation: ov-roll-down .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes ov-roll-up { 0% { transform: translateY(.45em); opacity: .35; } 100% { transform: none; opacity: 1; } }
@keyframes ov-roll-down { 0% { transform: translateY(-.45em); opacity: .35; } 100% { transform: none; opacity: 1; } }
.glass .ov-bars span, .glass .ov-progress b, .glass .ov-hbars b { transition: height .6s cubic-bezier(.2, .8, .2, 1), width .6s cubic-bezier(.2, .8, .2, 1); }
.glass .ov-photo .ov-metric { margin-top: 12px; }
.glass .ov-sub { margin-top: 18px; }
.glass .ov-calm { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 13px; }
.glass .ov-calm svg { width: 17px; height: 17px; color: var(--green); flex: none; }
.glass .ov-attn li { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .6); font-size: 13px; }
.glass .ov-attn a { color: var(--ink); text-decoration: none; font-weight: 500; }
.glass .ov-hbars li { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px; padding: 3px 0; font-size: 12px; }
.glass .ov-hbars span { color: var(--muted); }
.glass .ov-hbars i { height: 8px; border-radius: 999px; background: rgba(29, 27, 23, .07); }
.glass .ov-hbars i b { display: block; height: 100%; border-radius: 999px; background: var(--ink); opacity: .8; }
.glass .ov-hbars em { font-style: normal; text-align: right; }
.glass .ov-facts { display: flex; gap: 8px; margin-top: 14px; }
.glass .ov-facts span { flex: 1; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .4); font-size: 11px; color: var(--muted); }
.glass .ov-facts b { display: block; font: 400 18px Outfit, sans-serif; color: var(--ink); }
.glass .ov-link { font-size: 12px; color: var(--muted); }
.glass .ov-latest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.glass .ov-latest a { display: block; color: var(--ink); text-decoration: none; min-width: 0; }
.glass .ov-latest img, .glass .ov-latest a > span { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: rgba(255, 255, 255, .5); }
.glass .ov-latest small { display: block; margin-top: 4px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glass .ov-latest small i { display: block; font-style: normal; color: var(--muted); }
.glass .ov-log { columns: 3 280px; column-gap: 28px; }
.glass .ov-log li { break-inside: avoid; display: flex; gap: 10px; padding: 8px 0; font-size: 13px; border-top: 1px solid rgba(255, 255, 255, .55); }
.glass .ov-log li svg { width: 15px; height: 15px; margin-top: 2px; flex: none; opacity: .65; }
.glass .ov-log li.quiet { color: var(--muted); }
.glass .ov-log small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
@media (max-width: 1000px) { .glass .ov-top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .glass .ov-flow { height: 170px; } .glass .ov-latest { grid-template-columns: repeat(3, 1fr); } }
@keyframes ov-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes ov-grow { from { transform: scaleY(0); } }

/* ---------- «Площадки» */
.glass .pf-tabs { width: max-content; max-width: 100%; margin-bottom: 14px; }
.glass .pf-tabs a { display: inline-flex; align-items: center; text-decoration: none; }
.glass .pf-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }  /* the template stretched to 537 px on a phone */
.glass .pf-form > * { min-width: 0; }
.glass .pf-section .section-heading h2 { display: flex; align-items: center; gap: 8px; font: 500 18px Outfit, sans-serif; margin: 0; flex-wrap: wrap; row-gap: 6px; }
.glass .pf-section .section-heading h2 > span:not(.pf-mark) { white-space: nowrap; }
.glass .pf-section .section-heading h2 svg { width: 18px; height: 18px; }
.glass .pf-section .section-heading p { margin: 4px 0 14px; color: var(--muted); font-size: 13px; }
.glass .pf-section .form-grid { margin-bottom: 12px; }
.glass .pf-section .toggle-row + .toggle-row { margin-top: 8px; }
.glass .pf-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.glass .pf-status small { color: var(--muted); }
/* A long profile name («ООО … официальный дистрибьютор …») wraps inside the card instead of pushing the page sideways. */
.glass .pf-status .ov-chip { white-space: normal; max-width: 100%; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.glass .pf-status .button { margin-left: auto; }
.glass .pf-input { position: relative; display: block; }
.glass .pf-input i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-style: normal; font-size: 13px; pointer-events: none; }
.glass .pf-note { margin: 6px 2px 0; color: var(--muted); font-size: 12px; }
.glass .pf-keys { padding-top: 12px; border-top: 1px solid var(--edge); }
.glass .pf-replace .pf-keys { border-top: 0; padding-top: 4px; }
.glass .pf-input.is-filled input, .glass .pf-input.is-filled textarea { padding-right: 40px; }
.glass .pf-input i.pf-filled { right: 14px; width: 16px; height: 16px; color: var(--green); }
.glass .pf-input i.pf-filled svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.glass .pf-mark { display: inline-flex; align-items: center; gap: 5px; margin-left: 2px; white-space: nowrap; padding: 2px 10px 2px 7px; border-radius: 999px; font: 400 12.5px Inter, sans-serif; letter-spacing: 0; }
.glass .pf-mark svg { width: 14px !important; height: 14px !important; }
.glass .pf-mark.ok { background: var(--green-soft); color: var(--green); }
.glass .pf-mark.todo { background: var(--amber-soft); color: var(--amber); }
.glass .section-heading h2 > .pf-mark { margin-left: 10px; vertical-align: 3px; }
.glass .pf-section .section-heading h2 > .pf-mark { margin-left: 2px; vertical-align: baseline; }
.glass .secret-field > svg { width: 16px; height: 16px; stroke-width: 2.4; }
.glass input[readonly], .glass select:disabled { opacity: .75; cursor: default; }
.glass .pf-section .toggle-row { margin-bottom: 12px; }
.glass .pf-dry-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.glass .pf-dry-head small { color: var(--muted); }
.glass .pf-removal { margin: 12px 0; }
.glass .pf-blockers { padding: 12px 16px; border-radius: 18px; background: var(--amber-soft); border: 1px solid var(--edge); font-size: 13px; }
.glass .pf-blockers ul { margin: 6px 0 0; padding-left: 18px; }

/* «Объявления» list and the Avito-like preview (owner 2026-10-29) */
.glass .ads-toolbar { margin-bottom: 10px; min-width: 0; }
.glass .ads-toolbar .cat-filters { max-width: 100%; }  /* wrapped pills made an oval on a phone: they scroll instead */
.glass .ads-toolbar .cat-filter b { font-weight: 500; opacity: .6; margin-left: 2px; }
.glass .ad-list { display: grid; gap: 6px; }
.glass .ad-row { display: grid; grid-template-columns: 56px 1fr auto auto 18px; align-items: center; gap: 12px; width: 100%;
  padding: 8px 12px 8px 8px; border-radius: 16px; border: 1px solid var(--edge); background: rgba(255, 255, 255, .42);
  color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.glass button.ad-row:hover { background: rgba(255, 255, 255, .75); }
.glass a.ad-review-row { grid-template-columns: 56px minmax(0, 1fr) auto 18px; color: var(--ink); text-decoration: none; }
.glass a.ad-review-row:hover { background: rgba(255, 255, 255, .85); }
.glass a.ad-review-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.glass .ad-review-action { font-size: 13px; font-weight: 500; }
.glass .ad-review-row .ad-main small { white-space: normal; }
.glass .site-review-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.glass .site-review-heading > a:last-child { color: var(--ink); text-underline-offset: 3px; }
.glass .site-review-heading > span { color: var(--muted); font-size: 14px; }
.glass .review-task { max-width: 1120px; margin: 24px auto; padding: 28px; border: 1px solid rgba(255,255,255,.9); border-radius: 28px; background: rgba(255,255,255,.78); }
.glass .review-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.glass .review-pair > section { min-width: 0; }
.glass .review-column-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.glass .review-column-head > b { font-size: 19px; }
.glass .review-photo { height: 300px; border: 1px solid rgba(0,0,0,.06); border-radius: 18px; background: white; overflow: hidden; }
.glass .review-photo .link-photo-zoom { width: 100%; height: 100%; padding: 12px; display: grid; place-items: center; }
.glass .review-photo img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.glass .review-photo .link-photo-missing { height: 100%; padding: 20px; box-sizing: border-box; text-align: center; }
.glass .review-photo.is-thumbnail img { width: auto; height: auto; max-width: 140px; max-height: 105px; }
.glass .review-pair h3 { margin: 16px 0 8px; font-size: 16px; line-height: 1.45; font-weight: 600; }
.glass .review-source { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.glass .review-source a { color: var(--ink); text-underline-offset: 3px; }
.glass .review-params { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 22px 0 0; font-size: 15px; }
.glass .review-params th, .glass .review-params td { padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,.09); text-align: left; overflow-wrap: anywhere; }
.glass .review-params th { font-weight: 500; }
.glass .review-params thead { background: rgba(0,0,0,.04); font-size: 13px; }
.glass .review-params thead th:first-child { width: 30%; }
.glass .review-params .same td { color: #296341; }
.glass .review-params .unknown td:first-of-type { color: #8b5b13; background: #fff2d7; }
.glass .review-params .different td { color: #9d3527; background: #ffebe5; font-weight: 600; }
.glass .review-explanation { margin-top: 16px; padding: 14px 16px; border-left: 3px solid #c79a48; border-radius: 4px 12px 12px 4px; background: #fff5e2; font-size: 14px; line-height: 1.55; }
.glass .review-decision { display: grid; gap: 16px; margin-top: 24px; }
.glass .review-confirm { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.glass .review-confirm input { width: 19px; height: 19px; margin: 1px 0 0; flex: none; accent-color: #242320; }
.glass .review-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.glass .review-buttons .primary { flex: 1; min-width: 220px; padding: 14px 20px; }
.glass .review-decision small { color: var(--muted); line-height: 1.5; }
.glass .review-history, .glass .review-alternatives { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,.1); font-size: 14px; line-height: 1.55; }
.glass .review-history summary, .glass .review-alternatives summary { cursor: pointer; font-weight: 600; }
.glass .review-history p, .glass .review-history li { color: #605c55; }
.glass .review-history li + li { margin-top: 8px; }
.glass .review-alternatives > div { display: grid; gap: 8px; padding-top: 16px; }
.glass .review-variant { display: flex; gap: 14px; align-items: center; padding: 10px 14px; border: 1px solid #dedbd5; border-radius: 14px; color: var(--ink); text-decoration: none; background: white; }
.glass .review-variant img { width: 64px; height: 64px; object-fit: contain; }
.glass .review-variant span:last-child { margin-left: auto; white-space: nowrap; }
.glass .review-original-picker { display: grid; gap: 8px; margin-bottom: 24px; font-size: 14px; }
.glass .review-original-picker select { max-width: 100%; padding: 12px; border-radius: 12px; border: 1px solid #c9c5bf; font: inherit; background: white; }
@media (max-width: 700px) {
  .glass .review-task { padding: 16px; border-radius: 20px; }
  .glass .review-pair { gap: 12px; }
  .glass .review-column-head { align-items: flex-start; min-height: 54px; }
  .glass .review-column-head > b { font-size: 15px; }
  .glass .review-photo { height: 150px; border-radius: 12px; }
  .glass .review-photo .link-photo-zoom { padding: 4px; }
  .glass .review-photo .link-photo-missing { padding: 8px; font-size: 12px; }
  .glass .review-pair h3 { font-size: 13px; }
  .glass .review-source { font-size: 12px; }
  .glass .review-params { font-size: 12px; }
  .glass .review-params th, .glass .review-params td { padding: 10px 6px; }
  .glass .review-params thead { font-size: 11px; }
  .glass .review-buttons { flex-direction: column; align-items: stretch; }
  .glass .review-buttons .button { min-width: 0; white-space: normal; text-align: center; }
  .glass .review-variant { flex-wrap: wrap; }
}
.glass .site-review-product { max-width: 740px; margin: 24px 0 32px; }
.glass .site-review-product h3 { margin: 0 0 12px; }
.glass .link-saved-choice { border-radius: 14px; padding: 14px 16px; background: rgba(255, 239, 200, .65); font-size: 13px; }
.glass .link-saved-choice p { margin: 6px 0 0; }
.glass .ad-row.muted { grid-template-columns: 56px 1fr; cursor: default; opacity: .8; }
.glass .ad-thumb { width: 56px; height: 56px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.glass .ad-thumb img { width: 100%; height: 100%; object-fit: contain; }
.glass .ad-main { min-width: 0; display: grid; gap: 2px; }
.glass .ad-main strong { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glass .ad-main small, .glass .ad-price small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glass .ad-price { display: grid; text-align: right; font-weight: 500; white-space: nowrap; }
.glass .ad-tags { display: flex; gap: 6px; }
.glass .ads-more { margin-top: 10px; }
@media (max-width: 720px) {
  .glass .ad-row { grid-template-columns: 48px 1fr auto; }
  .glass a.ad-review-row { grid-template-columns: 48px minmax(0, 1fr); }
  .glass .ad-review-action { grid-column: 2; }
  .glass .ad-row .ad-tags, .glass .ad-row > svg { display: none; }
  .glass .ad-thumb { width: 48px; height: 48px; }
  .glass .ad-main strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
}

body.avp-open { overflow: hidden; }
.avp-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(20, 20, 24, .55); backdrop-filter: blur(6px);
  display: flex; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.avp { width: min(1120px, 100%); height: max-content; background: #fff; color: #000; border-radius: 20px; overflow: hidden; overflow: clip;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.avp-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: #f2f1f0; font-size: 13px; color: #444; }
.avp-nav { display: flex; align-items: center; gap: 6px; }
.avp-nav .icon-button { width: 32px; height: 32px; }
.avp-status { display: flex; gap: 10px; align-items: flex-start; padding: 10px 24px; font-size: 13px; background: #eef7ff; color: #134; }
.avp-status.linked { background: #ecfaf1; color: #0d3b22; }
.avp-status svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.avp-status a { color: inherit; }
.avp-page { padding: 18px 24px 28px; }
.avp-crumbs { font-size: 13px; color: #757575; margin-bottom: 8px; }
.glass .avp h1, .glass .avp h2 { font-family: inherit; letter-spacing: -.01em; }
.avp h1 { font-size: 28px; line-height: 1.2; font-weight: 700; margin: 0 0 18px; letter-spacing: -.01em; }
.avp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
.avp-gallery { position: relative; aspect-ratio: 4 / 3; background: #f5f4f2; border-radius: 16px; overflow: hidden; display: grid; place-items: center; }
/* absolute: in the grid the image's row took its own height and a taller photo lost its bottom (owner 05.11) */
.avp-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.avp-nophoto { display: grid; justify-items: center; gap: 8px; color: #999; }
.avp-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.avp-arrow.left { left: 12px; } .avp-arrow.right { right: 12px; }
.avp-thumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 24px; }
.avp-thumbs button { width: 72px; height: 54px; padding: 0; border-radius: 10px; border: 2px solid transparent; background: #f5f4f2; overflow: hidden; cursor: pointer; }
.avp-thumbs button.on { border-color: #00aaff; }
.avp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.avp-hint { font-size: 12px; color: #757575; }
.avp section { margin-bottom: 26px; }
.avp h2 { font-size: 21px; font-weight: 700; margin: 0 0 10px; }
.avp-params { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; font-size: 15px; }
.avp-params li { break-inside: avoid; padding: 3px 0; }
.avp-params span { color: #757575; }
.avp-text { font-size: 15px; line-height: 1.5; }
.avp-text p { margin: 0 0 12px; }
.avp-meta { font-size: 13px; color: #757575; }
.avp-missing { color: #d13; background: #fff0f0; border-radius: 6px; padding: 1px 6px; }
.avp-right { display: grid; gap: 10px; align-content: start; position: sticky; top: 0; }
.avp-price { font-size: 32px; font-weight: 700; }
.avp-unit { margin: -6px 0 6px; color: #757575; font-size: 14px; }
.avp-btn { display: grid; justify-items: center; width: 100%; padding: 12px; border: 0; border-radius: 12px; font: 600 16px/1.2 inherit; color: #fff; cursor: default; }
.avp-btn small { font-weight: 400; font-size: 13px; opacity: .9; }
.avp-btn.phone { background: #02c45a; } .avp-btn.chat { background: #00aaff; }
.avp-note { display: flex; gap: 8px; align-items: center; margin: 4px 0; font-size: 14px; }
.avp-note svg { width: 16px; height: 16px; }
.avp-note { color: #757575; font-size: 13px; }
.avp-seller { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-top: 6px; }
.avp-seller strong { display: block; font-size: 16px; } .avp-seller small { color: #757575; }
.avp-avatar { width: 48px; height: 48px; border-radius: 50%; background: #e8e6e3; display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.avp-was { display: grid; grid-template-columns: 64px 1fr; gap: 4px 10px; align-items: center; padding: 10px; border-radius: 12px; background: #f5f4f2; font-size: 13px; }
.avp-was small { grid-column: 1 / -1; color: #757575; }
.avp-was img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.avp-site { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: #0a6ebd; }
.avp-site svg { width: 14px; height: 14px; }
@media (max-width: 820px) {
  .avp-backdrop { padding: 0; }
  .avp { border-radius: 0; min-height: 100%; }
  .avp-page { padding: 14px 16px 24px; }
  .avp h1 { font-size: 22px; }
  .avp { min-width: 0; flex: 0 1 100%; }
  .avp-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .avp-left { display: contents; }
  .avp-gallery { order: 1; } .avp-thumbs { order: 2; } .avp-right { order: 3; position: static; margin-bottom: 24px; }
  .avp-left > section, .avp-meta { order: 4; }
  .avp-bar > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .avp-params { columns: 1; }
}

/* VK Market and Drom previews (owner 2026-10-30: the same templates for Drom and VK) */
.avp-text.plain { white-space: pre-line; }
.avp-gallery.square { aspect-ratio: 1 / 1; }
.vkp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.vkp-info { display: grid; gap: 10px; align-content: start; }
.glass .vkp h1 { font-size: 22px; font-weight: 500; margin: 0; }
.vkp .avp-price { font-size: 26px; }
.avp-btn.vk { background: #0077ff; }
.avp-btn.drom { background: #3a7bd5; }
.drp-params { width: 100%; border-collapse: collapse; font-size: 15px; }
.drp-params td { padding: 7px 0; border-bottom: 1px dashed #e2e2e2; vertical-align: top; }
.drp-params td:first-child { color: #757575; width: 45%; padding-right: 12px; }
@media (max-width: 820px) {
  .vkp-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* «Фото карточки» editor inside the preview (owner 2026-10-30) */
.avp-ph-box { margin: 4px 0 26px; padding: 14px; border-radius: 16px; background: #f7f6f4; border: 2px dashed transparent; transition: border-color .15s, background .15s; }
.avp-ph-box.drop { border-color: #00aaff; background: #eef8ff; }
.avp-ph-head { display: grid; gap: 2px; margin-bottom: 10px; font-size: 14px; }
.avp-ph-head small { color: #757575; font-size: 12px; }
.avp-ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 10px; }
.avp-ph { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #e6e4e1; cursor: grab; }
.avp-ph img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.avp-ph-badge { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 99px; background: #111; color: #fff; font-size: 11px; }
.avp-ph-badge.muted { background: rgba(255, 255, 255, .9); color: #555; border: 1px solid #e6e4e1; }
.avp-ph-tools { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 4px; }
.avp-ph-tools button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  display: grid; place-items: center; cursor: pointer; color: #222; padding: 0; }
.avp-ph-tools svg { width: 14px; height: 14px; }
.avp-ph.add { display: grid; place-content: center; justify-items: center; gap: 4px; border-style: dashed; color: #0a6ebd; font-size: 12px; cursor: pointer; text-align: center; }
.avp-ph.add.busy { color: #757575; cursor: progress; }
.avp-ph.add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.avp-ph.add svg { width: 22px; height: 22px; }
.avp-ph.add.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 820px) { .avp-ph-box { order: 2; } .avp-ph-tools button { width: 30px; height: 30px; } }

.glass .pf-more { margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, .6); padding-top: 10px; }
.glass .pf-more summary { cursor: pointer; font-size: 13px; color: var(--muted); list-style: none; padding: 4px 0; }
.glass .pf-more summary::-webkit-details-marker { display: none; }
.glass .pf-more summary::before { content: "＋ "; }
.glass .pf-more[open] summary::before { content: "－ "; }
.glass .pf-more[open] summary { margin-bottom: 8px; }

/* Photos by a reference card (owner 2026-10-30) */
.avp-ph-ref { position: absolute; right: 6px; top: 6px; padding: 2px 7px; border-radius: 99px; background: #f4c400; color: #111; font-size: 11px; }
.avp-scenes { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e6e4e1; display: grid; gap: 10px; }
.avp-ref { display: grid; grid-template-columns: 64px 1fr; gap: 8px 12px; align-items: center; }
.avp-ref .button { grid-column: 1 / -1; justify-self: start; }
.avp-ref img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; }
.avp-ref b { display: block; font-size: 14px; }
.avp-ref small, .avp-ref-hint { color: #757575; font-size: 12px; }
.avp-ref-hint { display: flex; gap: 10px; align-items: flex-start; margin: 0; line-height: 1.45; }
.avp-ref-hint > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.avp-ref-hint b { color: #333; font-weight: 500; }
.avp-ref-hint span svg { width: 14px; height: 14px; vertical-align: -2px; }
.avp-sc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.avp-sc { display: grid; gap: 6px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid #e6e4e1; font-size: 12px; }
.avp-sc img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 8px; background: #f5f4f2; }
.avp-sc small { color: #757575; }
.avp-sc.wait { grid-template-columns: 20px 1fr; align-items: center; color: #555; min-height: 64px; }
.avp-sc.wait svg { width: 18px; height: 18px; animation: spin 1s linear infinite; }
.avp-sc.err { color: #b3261e; }
.avp-sc-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.avp-sc-actions .button { font-size: 12px; }


/* «Файл для оптовиков» (owner 2026-10-30) */
.glass .pt-list { display: grid; gap: 8px; margin-bottom: 12px; }
.glass .pt-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(180px, 2fr) auto; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 16px; border: 1px solid var(--edge); background: rgba(255, 255, 255, .42); }
.glass .pt-row.off { opacity: .6; }
.glass .pt-main { display: grid; gap: 2px; min-width: 0; }
.glass .pt-main small { color: var(--muted); font-size: 12px; }
.glass .pt-main small a { color: inherit; }
.glass .pt-main .pt-note { font-style: italic; }
.glass .pt-link { width: 100%; min-width: 0; font-size: 12px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--edge); background: rgba(255, 255, 255, .7); }
.glass .pt-actions { display: flex; gap: 6px; align-items: center; }
.glass .pt-linkbox { display: flex; gap: 6px; align-items: center; min-width: 0; }
.glass .pt-facts { margin: 0; padding-left: 18px; display: grid; gap: 8px; line-height: 1.5; }
.glass .pt-actions { flex-wrap: wrap; }
.glass .pt-add { display: flex; gap: 8px; }
.glass .pt-add input { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--edge); background: rgba(255, 255, 255, .7); }
@media (max-width: 760px) { .glass .pt-row { grid-template-columns: 1fr; } }

/* ---------- portal v2 menu by job, page tabs and hints (owner 2026-11-02 «пересобрать кабинет… User Friendly») */
.glass [data-tab][hidden] { display: none !important; }
.glass .side-nav .nav-sep { flex: none; width: 1px; margin: 7px 4px; background: rgba(29, 27, 23, .16); }
.glass .page-tabs { width: max-content; max-width: 100%; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.glass .page-tabs::-webkit-scrollbar { display: none; }
.glass .page-tabs a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.glass .page-tabs b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--dark);
  font: 600 11px/18px Inter, sans-serif; text-align: center; opacity: 1; margin-left: 2px; }
.tip { position: relative; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 5px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(29, 27, 23, .28); background: transparent; color: rgba(29, 27, 23, .6);
  font: 600 10.5px/1 Inter, sans-serif; vertical-align: 1px; cursor: help; }
.tip:hover, .tip:focus-visible, .tip:focus { background: var(--dark, #1f1e1b); border-color: transparent; color: #fff; outline: none; }
.tip:hover::after, .tip:focus::after { content: attr(data-tip); position: absolute; left: -8px; bottom: calc(100% + 8px); z-index: 40;
  width: max-content; max-width: min(300px, 78vw); padding: 9px 12px; border-radius: 12px; background: var(--dark, #1f1e1b); color: #fff;
  font: 400 12.5px/1.45 Inter, sans-serif; letter-spacing: 0; text-align: left; white-space: normal; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); }

/* Avito «Состояние»: the steps before a launch */
.glass .pf-steps { display: grid; gap: 8px; }
.glass .pf-step { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px;
  border-radius: 18px; background: rgba(255, 255, 255, .5); border: 1px solid var(--edge); }
.glass .pf-step > svg { width: 20px; height: 20px; color: var(--muted); }
.glass .pf-step.ok > svg { color: var(--green); }
.glass .pf-step.todo > svg { color: var(--amber); }
.glass .pf-step strong { display: block; font-weight: 500; }
.glass .pf-step small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) {  /* the step's button goes under its text: beside it, it squeezed «Постоянные поля» into two lines */
  .glass .pf-step { grid-template-columns: 22px minmax(0, 1fr); }
  .glass .pf-step > .button { grid-column: 2; justify-self: start; }
}

/* Template of an ad: the card as the platform shows it, constants editable, product values blurred */
.glass .tpl-cats { width: max-content; max-width: 100%; }
.glass .tpl-cats .tpl-add { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.glass .tpl-cats .tpl-add svg { width: 14px; height: 14px; }
.glass .tpl-off { font-size: 11px; opacity: .65; }
.glass .tpl-cat-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 2px 14px; color: var(--muted); font-size: 13px; }
.glass .link-button { padding: 0; border: 0; background: none; color: var(--ink); font: 500 13px Inter, sans-serif; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }
.glass .tpl-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.glass .tpl-card { position: sticky; top: 12px; width: auto; border-radius: 22px; box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .45);
  max-height: calc(100vh - 40px); overflow: auto; }
.glass .tpl-card .avp-page { padding: 16px 18px 20px; }
.glass .tpl-card h1 { font-size: 22px; margin-bottom: 14px; }
.glass .tpl-card .avp-grid { grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; }
.glass .tpl-card .avp-price { font-size: 24px; }
.glass .tpl-card .avp-text { font-size: 13.5px; }
.glass .tpl-card .avp-params { columns: 1; font-size: 13.5px; }
.glass .tpl-card .vkp-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.glass .tpl-card .avp-gallery.square { aspect-ratio: 16 / 9; }
.glass .tpl-photo { aspect-ratio: 16 / 9; filter: blur(.4px); }
.tpl-var { filter: blur(3px); background: rgba(244, 196, 0, .28); border-radius: 4px; box-shadow: 0 0 0 1px rgba(244, 196, 0, .28); transition: filter .2s; cursor: help; }
.tpl-var.bad { filter: none; background: #fff0f0; color: #d13; }
.tpl-real .tpl-var { filter: none; }
.tpl-var:hover { filter: none; }
.tpl-const { display: inline; padding: 0 3px; margin: 0 -3px; border: 0; border-radius: 5px; background: transparent; color: inherit;
  font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 -1px 0 rgba(0, 120, 255, .45); }
.tpl-const:hover { background: rgba(0, 120, 255, .08); }
.glass .tpl-editor { display: grid; gap: 12px; align-content: start; }
.glass .tpl-editor textarea { min-height: 260px; font: 13px/1.5 Inter, sans-serif; }
.glass .tpl-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.glass .tpl-chips small { width: 100%; color: var(--muted); }
.glass .tpl-chip { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px dashed rgba(29, 27, 23, .3); background: rgba(244, 196, 0, .16);
  color: var(--ink); font: 500 12px Inter, sans-serif; cursor: pointer; }
.glass .tpl-chip:hover { background: var(--accent); border-style: solid; }
.glass .tpl-over { color: var(--red) !important; }
.glass .tpl-real-toggle { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) {
  .glass .tpl-wrap { grid-template-columns: minmax(0, 1fr); }
  .glass .tpl-card { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .glass .tpl-card .avp-grid { grid-template-columns: minmax(0, 1fr); }
}
.glass .side-nav a.nav-back { width: 32px; padding: 0; justify-content: center; }

/* «Фото» по моделям (02.11) */
.pg-page { display: grid; gap: 14px; }
.pg-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.pg-stats { display: flex; flex-wrap: wrap; gap: 22px; }
.pg-stat { display: grid; gap: 2px; }
.pg-stat b { font-size: 22px; font-weight: 600; line-height: 1.1; }
.pg-stat span { font-size: 12px; color: var(--muted, #77736d); display: inline-flex; align-items: center; gap: 4px; }
.pg-auto { max-width: 440px; flex: 1 1 320px; }
.pg-disc { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid #ebe9e6; }
.pg-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pg-group-head > div { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pg-group-head small, .pg-row-main small { color: var(--muted, #77736d); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-result { position: relative; display: block; }
.pg-ref { position: absolute; right: 6px; bottom: 6px; width: 30% !important; aspect-ratio: auto !important; border: 2px solid #fff; border-radius: 6px !important; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.pg-list { display: grid; gap: 0; padding: 4px 14px; }
.pg-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto 160px; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #efedea; }
.pg-row:last-child { border-bottom: 0; }
.pg-row-main { display: grid; gap: 2px; min-width: 0; }
.pg-row .button { justify-self: end; white-space: nowrap; }
.pg-open { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pg-row-main.pg-open b { display: inline-flex; align-items: center; gap: 6px; }
.pg-row-main.pg-open svg { width: 15px; height: 15px; color: var(--muted, #77736d); }
.pg-row-main.pg-open:hover b, .pg-dots.pg-open:hover { opacity: .75; }
.pg-row.open { border-bottom-color: transparent; }
.pg-row-panel { padding: 4px 0 14px 68px; border-bottom: 1px solid #efedea; }
.pg-dots { display: inline-flex; gap: 4px; }
.pg-dot { width: 9px; height: 9px; border-radius: 50%; background: #e3e0db; }
.pg-dot.off { background: transparent; border: 1px dashed #d4d0ca; }
.pg-dot.queued, .pg-dot.running { background: #f0b44c; }
.pg-dot.ready { background: var(--accent, #2f6fed); }
.pg-dot.approved { background: #3aa76d; }
.pg-dot.error, .pg-dot.rejected { background: #d9534f; }
.pg-chip { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; border: 1px solid #e3e0db; background: rgba(255, 255, 255, .7); color: #5f5b55; white-space: nowrap; }
/* dark ink on a light tint: yellow text on the beige glass was unreadable (owner 2026-11-02) */
.pg-chip.review { border-color: #e9c23a; background: #fff4cc; color: #5c4600; }
.pg-chip.work { border-color: #f0b44c; background: #fdecd0; color: #7a4f08; }
.pg-chip.done { border-color: #8fcfab; background: #e3f4ea; color: #1d6a43; }
.pg-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pg-frame { display: grid; gap: 6px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid #e6e4e1; font-size: 12px; }
.pg-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #f5f4f2; }
.pg-frame.empty { place-items: center; align-content: center; min-height: 190px; border-style: dashed; color: var(--muted, #77736d); font: inherit; text-align: center; }
.pg-frame.empty:hover { border-color: var(--accent, #2f6fed); }
.pg-frame.empty.busy svg { animation: spin 1s linear infinite; }
.pg-frame.empty > span:not(.avp-sc-actions) { font-size: 14px; font-weight: 500; }
.pg-frame.empty .avp-sc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pg-upload { position: relative; overflow: hidden; cursor: pointer; }
.pg-plate { display: grid; gap: 6px; padding-top: 8px; border-top: 1px dashed #e6e4e1; color: var(--muted, #77736d); }
.pg-plate img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.pg-plate small { display: flex; align-items: center; gap: 4px; }
.pg-plate.wait small { color: #b54708; }
.pg-plate span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pg-plate.busy, .pg-plate.err { grid-template-columns: auto 1fr; align-items: center; }
.pg-plate.busy svg { width: 16px; height: 16px; animation: spin 1s linear infinite; }
.pg-plate.err { color: #b42318; }
.pg-upload input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.pg-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; margin: 10px 0; }
.pg-pick-item { display: grid; gap: 4px; padding: 6px; border-radius: 10px; border: 1px solid #e6e4e1; background: #fff; cursor: pointer; font: inherit; font-size: 11px; text-align: left; }
.pg-pick-item:hover { border-color: var(--accent, #2f6fed); }
.pg-pick-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #f5f4f2; }
.pf-note.warn { color: #9a6a12; display: flex; align-items: center; gap: 6px; }
@media (max-width: 720px) {
  .pg-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .pg-row .pg-dots { display: none; }
  .pg-row-panel { padding-left: 0; }
  .pg-row .button { grid-column: 1 / -1; justify-self: stretch; }
}

/* «На проверке»: original vs generated, side by side */
button.pg-result { padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; width: 100%; }
.pg-cmp-chip { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,.88); color: #333; font-size: 11px; opacity: 0; transition: opacity .15s; }
.pg-cmp-chip svg { width: 12px; height: 12px; }
.pg-result:hover .pg-cmp-chip, .pg-result:focus-visible .pg-cmp-chip { opacity: 1; }
.pgc { width: min(1400px, 100%); height: max-content; background: #fff; color: #111; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.pgc-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: #f2f1f0; font-size: 13px; color: #444; }
.pgc-bar b { display: block; font-size: 15px; color: #111; font-weight: 600; }
.pgc-bar small { color: #757575; }
.pgc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #ebe9e6; }
.pgc-pair figure { margin: 0; background: #faf9f8; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.pgc-pair figcaption { display: flex; align-items: center; gap: 8px; min-height: 50px; box-sizing: border-box; padding: 8px 12px; font-size: 12px; color: #666; letter-spacing: .02em; }
.pgc-pair a { display: block; }
.pgc-pair { position: relative; }
.pgc-pair a > img { display: block; width: 100%; height: min(68vh, 720px); object-fit: contain; background: center / contain no-repeat; }
.pgc-side { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.92); color: #222; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .15s, background .15s; }
.pgc-side:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.pgc-side svg { width: 26px; height: 26px; }
.pgc-side.prev { left: 12px; }
.pgc-side.next { right: 12px; }
.pgc-frame { margin-left: auto; height: 34px; width: auto; border-radius: 6px; border: 1px solid #e6e4e1; }
.pgc-none { display: grid; place-items: center; min-height: 300px; color: #999; font-size: 13px; }
.pgc-asked { margin: 0; padding: 8px 16px 0; font-size: 12px; color: #8a5a00; }
.pgc-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px 16px; }
.pgc-act textarea { flex: 1 1 320px; min-height: 38px; resize: vertical; padding: 9px 12px; border-radius: 12px; border: 1px solid #e0ddd9; font: inherit; font-size: 13px; }
.pgc-done { display: grid; justify-items: center; gap: 8px; padding: 60px 16px; color: #555; }
.pgc-done svg { width: 32px; height: 32px; color: #2e7d32; }
@media (max-width: 760px) {
  .pgc-pair { grid-template-columns: 1fr; }
  .pgc-pair a > img { height: auto; max-height: 38vh; }
  .pgc-pair figcaption { min-height: 0; }
  .pgc-backdrop { padding: 8px; }
  .pgc-side { width: 42px; height: 42px; top: 38vh; }
}
.pgc-bar .avp-nav span { white-space: nowrap; }
.pg-frame-add { cursor: pointer; font: inherit; color: #555; border-style: dashed; }
.pg-frame-add:hover { color: #111; border-color: #bbb; }
.pg-frame-add small { color: #888; text-align: center; max-width: 200px; }
/* Card photos: one row, coloured frames over it — VK (first 5), Avito (first 10), Drom (all); unused photos below */
.avp-ph-framed { position: relative; padding: 22px; margin-bottom: 12px; }
/* room between tiles for the frame lines (6/12/18 px out of a tile): a frame never runs over the next photo */
.avp-ph-framed .avp-ph-grid { margin-bottom: 0; gap: 22px 16px; }
.avp-ph-add { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  margin-bottom: 12px; border: 1px dashed #b9d5ee; border-radius: 12px; background: #fff; color: #0a6ebd; font-size: 13px; cursor: pointer; }
.avp-ph-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.avp-ph-add svg { width: 18px; height: 18px; }
.avp-ph-add.busy { color: #757575; cursor: progress; }
.avp-ph-add.busy svg { animation: spin 1s linear infinite; }
.avp-ph-lines { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.avp-ph-aside { display: grid; gap: 8px; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; border: 1px dashed #cfccc7; background: rgba(255,255,255,.5); }
.avp-ph-aside > small { color: #757575; font-size: 12px; }
.avp-ph-aside .avp-ph-grid { margin: 0; }
.avp-ph.out img { opacity: .75; }
.avp-ph-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: 12px; color: #555; }
.avp-ph-legend span { display: inline-flex; align-items: center; gap: 6px; }
.avp-ph-legend i { width: 14px; height: 10px; border: 2px solid; border-radius: 3px; }
/* Phone: four tools fit a tile of two columns; on a narrower phone they wrap to a second row instead of being cut */
@media (max-width: 820px) {
  .avp-ph-framed { padding: 18px; }
  .avp-ph-framed .avp-ph-grid { column-gap: 12px; }
  .avp-ph-tools { left: 4px; gap: 3px; flex-wrap: wrap-reverse; justify-content: flex-end; }
  .avp-ph-tools button { width: 28px; height: 28px; }
}

/* «Выгрузка» on Avito (2026-11-03): the launch, the channel's state and its controls */
.pf-launch-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 4px; }
.pf-launch-go small { color: var(--muted, #757575); font-size: 12px; }
.pf-checks { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 10px 0 14px; }
.pf-check { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 999px; font-size: 13px; color: #333; cursor: pointer; background: rgba(255, 255, 255, .6); }
.pf-check input { width: 15px; height: 15px; margin: 0; }
.pf-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pf-busy { display: flex; align-items: center; gap: 8px; }
.pf-busy svg { width: 16px; height: 16px; flex: none; animation: spin 1s linear infinite; }
.pf-refused { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 12px; color: #555; }
.pf-refused b { font-weight: 500; color: #222; }
.pf-refused a { color: #0a6ebd; text-decoration: none; }
/* Avito as steps 1–4 (owner 2026-11-03): a number until the step is done, then a green check */
.page-tabs.steps .cat-filter { display: inline-flex; align-items: center; gap: 7px; }
.step-n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor;
  font-size: 11px; line-height: 1; opacity: .7; flex: none; }
.step-ok { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #2f9e44; color: #fff; flex: none; }
.step-ok svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pf-next { display: flex; justify-content: flex-end; margin: 4px 0 18px; }
.pf-next .button { display: inline-flex; align-items: center; gap: 6px; }
.pf-next svg { width: 16px; height: 16px; }
.pf-dry-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.pf-dry-actions a.button { text-decoration: none; }
@media (max-width: 820px) { .glass .pf-dry-head { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* Avito on a phone (owner 2026-11-03 «Сделай максимально похожим с правильными переносами», then his screen recording of
   the Avito app): a narrow preview — the template card, or the ad preview on a phone — follows the app (see avitoPage in
   app.js); the avp-m-* parts exist only there. Wide previews keep the desktop layout. */
.avp { container-type: inline-size; }
.avp-actions { display: grid; gap: 10px; }
.avp-narrow { display: none; }
.avp-wide { display: grid; justify-items: center; }
.avp-m-price, .avp-m-stock, .avp-m-head, .avp-m-card, .avp-m-sticky, .avp-m-more, .avp-m-count { display: none; }
.avp-map { display: inline-block; margin-top: 2px; color: #00aaff; font-size: 14px; }
@container (max-width: 600px) {
  .avp .avp-page.avito { display: flex; flex-direction: column; padding: 0; color: #000; }
  .avp .avp-page.avito .avp-grid, .avp-page.avito .avp-left, .avp-page.avito .avp-right { display: contents; }
  .avp .avp-page.avito :is(.avp-crumbs, .avp-thumbs, .avp-price, .avp-unit, .avp-right > .avp-seller) { display: none; }
  .avp .avp-page.avito .avp-gallery { order: 1; border-radius: 0; aspect-ratio: 1 / 1; }
  .avp .avp-page.avito .avp-m-count { display: block; position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 2px 8px; border-radius: 10px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; }
  .avp .avp-page.avito .avp-m-price { order: 2; display: grid; gap: 2px; margin: 16px 16px 0; }
  .avp .avp-page.avito .avp-m-price b { font-size: 26px; line-height: 1.2; font-weight: 700; }
  .avp .avp-page.avito .avp-m-price small { font-size: 15px; }
  .avp .avp-page.avito .avp-m-price i { font-style: normal; margin: 0 6px; color: #757575; }
  .avp .avp-page.avito h1 { order: 3; margin: 14px 16px 0; font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: 0; overflow-wrap: break-word; }
  .avp .avp-page.avito .avp-m-stock { order: 4; display: block; margin: 4px 16px 0; font-size: 15px; }
  .avp .avp-page.avito .avp-m-head { order: 5; display: grid; gap: 4px; margin: 20px 16px 0; }
  .avp .avp-page.avito .avp-m-head strong { font-size: 26px; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; }
  .avp .avp-page.avito .avp-m-head small, .avp-page.avito .avp-m-card small { color: #757575; font-size: 14px; }
  .avp .avp-page.avito .avp-right > .avp-actions { order: 6; margin: 14px 12px 0; }
  .avp .avp-page.avito .avp-actions.two { grid-template-columns: 1fr 1fr; }
  .avp .avp-page.avito .avp-btn { padding: 12px 8px; border-radius: 12px; font-size: 16px; font-weight: 500; }
  .avp .avp-page.avito .avp-wide { display: none; }
  .avp .avp-page.avito .avp-narrow { display: inline; }
  .avp .avp-page.avito section { order: 9; margin: 0 16px; padding-top: 28px; }
  .avp .avp-page.avito section.avp-place { order: 7; padding-top: 24px; font-size: 15px; }
  .avp .avp-page.avito section.avp-place h2 { display: none; }
  .avp .avp-page.avito section.avp-place p { margin: 0; }
  .avp .avp-page.avito section.avp-state { order: 8; }
  .avp .avp-page.avito section.avp-desc { order: 10; }
  .avp .avp-page.avito section h2 { font-size: 24px; line-height: 1.2; font-weight: 700; margin: 0 0 10px; }
  .avp .avp-page.avito .avp-params { columns: 1; font-size: 15px; }
  .avp .avp-page.avito .avp-params li { padding: 4px 0; }
  .avp .avp-page.avito .avp-text { font-size: 15px; line-height: 1.45; overflow-wrap: break-word; }
  .avp .avp-page.avito .avp-desc:not(.open) .avp-text { max-height: 6.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  .avp .avp-page.avito .avp-desc:not(.open) .avp-m-more { display: block; margin-top: 10px; padding: 0; border: 0; background: none; color: #00aaff; font: inherit; font-size: 15px; cursor: pointer; }
  .avp .avp-page.avito .avp-m-card { order: 11; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 12px; align-items: start; margin: 28px 16px 0; }
  .avp .avp-page.avito .avp-m-who { display: grid; gap: 4px; }
  .avp .avp-page.avito .avp-m-who strong { font-size: 22px; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; }
  .avp .avp-page.avito .avp-m-card .avp-avatar { width: 64px; height: 64px; border-radius: 12px; }
  .avp .avp-page.avito .avp-m-contact { grid-column: 1 / -1; display: grid; gap: 2px; font-size: 16px; }
  .avp .avp-page.avito :is(.avp-meta, .avp-note, .avp-was, .avp-site) { order: 12; margin: 14px 16px 0; }
  .avp .avp-page.avito .avp-ph-box { order: 13; margin: 22px 16px 0; }  /* our photo editor after the card as Avito shows it */
  .avp .avp-page.avito .avp-m-sticky { order: 14; display: block; position: sticky; bottom: 0; z-index: 2; margin-top: 18px; padding: 10px 12px; background: rgba(255,255,255,.96); box-shadow: 0 -6px 16px rgba(0,0,0,.06); }
  .avp .avp-page.avito > :last-child:not(.avp-m-sticky) { margin-bottom: 18px; }
}

/* One exception, one next action; stable layout on desktop and mobile. */
.issues-heading p{max-width:850px;color:var(--muted);line-height:1.55}.issues-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:24px 0}.issues-platform select{padding:14px 20px;border:1px solid #ffffff90;border-radius:24px;background:#ffffffa8;color:inherit;font:inherit}.issue-list{display:grid;gap:12px}.issue-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;padding:24px;background:#ffffffa8;border:1px solid #fff;border-radius:24px}.issue-card h3{font-size:17px;margin:12px 0 8px}.issue-card p{margin:0;line-height:1.5;max-width:960px}.issue-card details{margin-top:12px}.issue-meta{display:flex;gap:12px;align-items:center;font-size:13px;color:#666}.issue-card>.button{max-width:250px;text-align:center;justify-content:center}.issue-actions{display:flex;flex-direction:column;gap:8px;max-width:260px}.issue-actions .button{text-align:center;justify-content:center}.issue-links{margin-top:10px!important;font-size:13px;color:#666}.issue-links a{color:inherit}.held-compare{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:16px}.held-side{margin:0;padding:12px;border-radius:16px;background:#ffffff80;border:1px solid #fff}.held-side figcaption{font-size:12px;color:#666;margin-bottom:8px}.held-photos{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.held-photos img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;display:block;background:#fff}.held-nophoto{grid-column:1/-1;font-size:13px;color:#888}.held-side p{margin:8px 0 0!important;font-size:13px;line-height:1.45}.held-side span{color:#555}.held-side a{color:inherit}.held-side .held-where{margin-top:4px!important;color:#555}.held-side .held-match{margin:0 0 8px!important;font-weight:600;color:#7a5200}.held-side .held-match.same{color:#b00020}.held-similar{margin-top:12px;padding:10px 12px;border-radius:12px;background:#fff4e5;font-size:13px;line-height:1.45}.held-similar p{margin:4px 0 0!important}.held-similar a{color:inherit}.piece-set-list{display:grid;gap:12px;margin:12px 0}.piece-set-row{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;align-items:center;padding:14px 16px;border-radius:16px;background:#ffffff80;border:1px solid #fff}.piece-set-row p{margin:4px 0 0;font-size:13px;color:#555}.piece-set-row a{color:inherit}@media(max-width:760px){.piece-set-row{grid-template-columns:1fr}}.issues-runs{margin-top:32px;padding:20px;border-top:1px solid #ffffff88}.issues-runs article{padding:16px 0;border-bottom:1px solid #ffffff70}.issues-runs summary{cursor:pointer;font-weight:600}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:760px){.issue-card{grid-template-columns:1fr;gap:16px;padding:20px}.issue-card>.button{max-width:none}.issue-actions{max-width:none}.held-compare{grid-template-columns:1fr}.held-photos{grid-template-columns:repeat(4,1fr)}.issues-toolbar{align-items:stretch}.issues-toolbar .cat-search{width:100%}.issue-meta{flex-wrap:wrap}}
.issues-platform select{height:auto;min-height:44px;line-height:1.4;padding:10px 32px 10px 18px}.issues-toolbar .cat-search{flex:1 1 300px;width:auto;min-width:220px}.issues-heading h2{margin-bottom:12px}
.source-import { display: grid; gap: 16px; }
.glass .modal:has(.source-import) { width: min(960px, calc(100vw - 32px)); }
.glass .source-import p, .glass .source-import h3 { margin: 0; }
.source-import .link-warn:empty { display: none; }
.source-import form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.source-import form p { flex-basis: 100%; }
.source-import form p:last-of-type { order: 3; }
.source-import form p:first-child { order: 0; }
.source-import form .button { order: 1; margin: 0; }
.source-import section > .button { justify-self: start; }
.source-import section { display: grid; gap: 10px; }
.source-import .reconcile-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.source-import-table { max-height: 320px; overflow: auto; }
.source-import-table table { width: 100%; table-layout: fixed; }
.source-import-table td, .source-import-table th { overflow-wrap: anywhere; }
.source-import-table small { color: var(--muted, #666); }
.source-import details { border-top: 1px solid rgba(0,0,0,.12); padding-top: 12px; }

/* ---------- «Сверка с Avito» (Race Ready, owner 2026-11-15 «простым понятным и удобным»): three lists, one question per card */
.glass .rr-rec { max-width: 1120px; margin: 0 auto; display: grid; gap: 16px; }
.glass .rr-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.glass .rr-tab { display: grid; gap: 2px; text-align: left; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--edge); background: rgba(255, 255, 255, .55); color: var(--ink); cursor: pointer; font: inherit; }
.glass .rr-tab b { font-family: Outfit, Inter, sans-serif; font-size: 30px; font-weight: 500; line-height: 1.1; }
.glass .rr-tab span { font-weight: 600; font-size: 15px; }
.glass .rr-tab small { color: var(--muted); font-size: 12px; }
.glass .rr-tab.todo b { color: var(--red); }
.glass .rr-tab.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.glass .rr-tab.on small, .glass .rr-tab.on.todo b { color: rgba(255, 255, 255, .8); }
.glass .rr-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.glass .rr-toolbar p { margin: 0; flex: 1 1 320px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.glass .rr-toolbar .cat-search { flex: 0 1 320px; min-width: 0; }
.glass .rr-list { display: grid; gap: 10px; }
.glass .rr-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .72); border: 1px solid var(--edge); }
.glass .rr-row.rr-pair { grid-template-columns: 64px minmax(0, 1fr) 20px minmax(0, 1fr) auto; }
.glass .rr-thumb { width: 64px; height: 64px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.glass .rr-thumb img { width: 100%; height: 100%; object-fit: contain; }
.glass .rr-row-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.glass .rr-row-copy > b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.glass .rr-row-copy small { flex-basis: 100%; color: var(--muted); font-size: 12px; line-height: 1.4; }
.glass .rr-row-task { flex-basis: 100%; font-weight: 600; font-size: 14px; color: var(--amber); }
.glass .rr-arrow { width: 18px; height: 18px; color: var(--muted); }
.glass .rr-more-link { margin: 4px 0 0; text-align: center; }
.glass .rr-more-link button, .glass .rr-back-simple { background: none; border: 0; padding: 4px; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.glass .rr-task-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.glass .rr-task-nav span { color: var(--muted); font-size: 13px; }
.glass .rr-task { padding: 20px 24px; border-radius: 22px; background: rgba(255, 255, 255, .78); border: 1px solid var(--edge); }
.glass .rr-task.todo { border-left: 6px solid var(--accent); }
.glass .rr-task h2 { margin: 0 0 6px; font-size: 24px; }
.glass .rr-task p { margin: 0; color: var(--muted); line-height: 1.5; }
.glass .rr-compare { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.glass .rr-site, .glass .rr-options { display: grid; gap: 10px; padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .7); border: 1px solid var(--edge); min-width: 0; }
.glass .rr-site { position: sticky; top: 12px; }
.glass .rr-col-head { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.glass .rr-site-photo { display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; background: #fff; cursor: zoom-in; }
.glass .rr-site-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.glass .rr-site > b { font-size: 16px; font-weight: 600; line-height: 1.35; }
.glass .rr-site small { color: var(--muted); font-size: 13px; }
.glass .rr-site .ov-chip { justify-self: start; }
.glass .rr-option { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 16px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid rgba(29, 27, 23, .08); }
.glass .rr-option-photo .link-photo-zoom { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #f4f1ea; cursor: zoom-in; }
.glass .rr-option-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.glass .rr-option-photo .link-photo-missing { aspect-ratio: 4 / 3; display: grid; place-content: center; gap: 8px; text-align: center; border-radius: 12px; background: #f4f1ea; color: var(--muted); }
.glass .rr-option-copy { display: grid; gap: 10px; align-content: start; min-width: 0; }
.glass .rr-option-copy > p { margin: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.glass .rr-option-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.glass .rr-option-head b { font-size: 16px; }
.glass .rr-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.glass .rr-fact { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; font-size: 13px; background: rgba(29, 27, 23, .05); }
.glass .rr-fact small { color: var(--muted); }
.glass .rr-fact em { font-style: normal; font-size: 12px; }
.glass .rr-fact svg { width: 14px; height: 14px; }
.glass .rr-fact.same { background: var(--green-soft); color: var(--green); }
.glass .rr-fact.diff { background: var(--red-soft); color: var(--red); }
.glass .rr-fact.unknown { background: var(--amber-soft); color: var(--amber); }
.glass .rr-option-note { margin: 0; font-size: 13px; color: var(--muted); }
.glass .rr-option-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.glass .rr-option-actions a { font-size: 13px; }
.glass .rr-answer { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; padding: 14px; border-radius: 16px; background: var(--amber-soft); }
.glass .rr-answer span { font-weight: 600; font-size: 14px; }
.glass .rr-details summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.glass .rr-related .rr-row { background: #fff; }
.glass .rr-related > .cat-note { margin: 0; }
.glass .rr-subhead { margin: 14px 0 2px; font-size: 15px; font-weight: 600; }
.glass .rr-answer-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.glass .rr-details ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .glass .rr-compare { grid-template-columns: minmax(0, 1fr); }
  .glass .rr-site { position: static; }
  .glass .rr-option { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .glass .rr-tabs { grid-template-columns: minmax(0, 1fr); }
  .glass .rr-tab { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; padding: 12px 14px; }
  .glass .rr-tab b { grid-row: span 2; font-size: 24px; }
  .glass .rr-row { grid-template-columns: 48px minmax(0, 1fr); }
  .glass .rr-row > .button { grid-column: 1 / -1; justify-self: start; }
  .glass .rr-thumb { width: 48px; height: 48px; }
  .glass .rr-row.rr-pair { grid-template-columns: 48px minmax(0, 1fr); }
  .glass .rr-row.rr-pair .rr-arrow { display: none; }
  .glass .rr-row.rr-pair > .rr-row-copy:nth-of-type(2) { grid-column: 2; }
  .glass .rr-row.rr-pair > .button { grid-column: 1 / -1; }
  .glass .rr-task { padding: 16px; }
  .glass .rr-task h2 { font-size: 20px; }
}

.glass .rr-row a.button, .glass .rr-task-nav a.button { text-decoration: none; }
.glass .rr-option-actions .button:not(.primary), .glass .rr-answer .button:not(.primary) { background: rgba(29, 27, 23, .06); border: 1px solid rgba(29, 27, 23, .14); }

/* ---------- 2026-11-15 «понятный интерфейс»: a link that looks like a button is not underlined */
.glass a.button, .glass a.button:hover { text-decoration: none; }
/* the platform filter of «Задачи» in the same type as the filters beside it */
.glass .issues-platform select { font: 500 13px Inter, sans-serif; min-height: 38px; padding: 8px 32px 8px 16px; }

/* Drom → «Гайки и ниппели»: a thumbnail of the site photo in each row (owner 2026-11-15: photos for every product). */
.glass .drom-sample-photo { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: rgba(255,255,255,.4); }
.glass [data-drom-fasteners] .drom-sample-row > span:first-of-type { flex: 1 1 auto; }
.glass [data-drom-fasteners] .drom-sample-row strong { white-space: normal; }
@media (max-width: 640px) {
  .glass [data-drom-fasteners] .drom-sample-row { flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; }
  .glass [data-drom-fasteners] .drom-sample-row > span:first-of-type { flex: 1 1 calc(100% - 72px); }
  .glass [data-drom-fasteners] .drom-sample-row > span:nth-of-type(2) { margin-left: 70px; text-align: left; }
}

/* A switch is clicked anywhere on its track (owner 2026-11-17: «почему-то не включается»). The invisible checkbox used to
   sit as a 13×13 box in the corner of the track, so a click on the track went to the label, and a label whose title holds
   a «?» hint passes its click to that hint button, never to the checkbox. Now the checkbox covers the whole track. */
.glass .switch input { inset: 0; width: 100%; height: 100%; margin: 0; z-index: 1; cursor: pointer; }
.glass .switch input:disabled { cursor: not-allowed; }

/* Отказы Avito в «Задачах» (2026-11-23): фото карточки сайта. */
.issue-card .refused-photos{max-width:360px;margin-top:12px}
