:root {
  --blue: #2f49e8;
  --blue-dark: #1e32bd;
  --blue-soft: #eef1ff;
  --ink: #18191f;
  --muted: #73798b;
  --line: #e6e8f0;
  --surface: #ffffff;
  --canvas: #f5f6fb;
  --green: #19a974;
  --green-soft: #e8f8f2;
  --yellow: #ffdc24;
  --red: #e74c5b;
  --red-soft: #fff0f2;
  --shadow: 0 18px 55px rgba(29, 39, 95, 0.12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.button {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  background: var(--blue);
  color: white;
  font-weight: 550;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { background: var(--blue-dark); box-shadow: 0 10px 26px rgba(47,73,232,.22); }
.button:active { transform: translateY(1px); }
.button.secondary { background: var(--blue-soft); color: var(--blue); }
.button.secondary:hover { background: #dfe5ff; box-shadow: none; }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button.ghost:hover { background: #f7f8fc; box-shadow: none; }
.button.danger { background: var(--red); }
.button.small { padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.landing { min-height: 100vh; background: white; }
.landing-nav {
  height: 78px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(24px, 6vw, 92px); border-bottom: 1px solid var(--line); position: sticky;
  top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.04em; font-size: 28px; }
.brand-logo { display: block; width: 50px; height: 50px; object-fit: cover; border-radius: 50%; }
.sidebar .brand-logo { width: 50px; height: 50px; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px;
  background: var(--yellow); color: var(--blue); font-size: 20px; font-weight: 1000;
  transform: rotate(-4deg);
}
.landing-links { display: flex; align-items: center; gap: 28px; color: #4d5262; font-size: 14px; }
.landing-links a { text-decoration: none; }
.hero {
  min-height: 660px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px;
  align-items: center; padding: 72px clamp(24px, 7vw, 112px); overflow: hidden;
  background: radial-gradient(circle at 82% 26%, #e9edff 0, #f8f9ff 25%, white 56%);
}
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .14em; font-weight: 850; font-size: 12px; }
.hero h1 { margin: 18px 0 20px; max-width: 760px; font-size: clamp(46px, 5.6vw, 78px); line-height: .98; letter-spacing: -.06em; }
.hero-copy { max-width: 680px; color: #5c6170; font-size: 19px; line-height: 1.58; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.microcopy { color: var(--muted); font-size: 13px; }
.auction-visual { position: relative; min-height: 480px; display: grid; place-items: center; }
.visual-orbit { position: absolute; width: 420px; height: 420px; border: 1px solid #dfe4ff; border-radius: 50%; }
.visual-orbit::after { content: ""; position: absolute; inset: 42px; border: 1px dashed #cdd5ff; border-radius: 50%; }
.visual-card { position: relative; z-index: 2; width: min(390px, 100%); border-radius: 30px; padding: 28px; background: #202126; color: white; box-shadow: 0 30px 80px rgba(30,38,94,.28); transform: rotate(-2deg); }
.visual-card .live { color: #aab6ff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.visual-card h3 { font-size: 26px; margin: 14px 0 24px; }
.podium { display: grid; grid-template-columns: repeat(3,1fr); align-items: end; gap: 8px; height: 185px; }
.podium > div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border-radius: 18px 18px 7px 7px; background: var(--blue); padding: 16px 8px; }
.podium .p1 { height: 100%; background: var(--yellow); color: #1a1b20; }
.podium .p2 { height: 78%; }
.podium .p3 { height: 60%; background: #596bea; }
.podium strong { font-size: 18px; }
.podium span { font-size: 11px; opacity: .72; margin-top: 4px; }
.float-chip { position: absolute; z-index: 3; padding: 12px 16px; border-radius: 14px; background: white; box-shadow: var(--shadow); font-size: 13px; font-weight: 800; }
.float-chip.one { top: 60px; right: 0; }
.float-chip.two { bottom: 52px; left: 0; color: var(--green); }

.landing-section { padding: 86px clamp(24px, 7vw, 112px); }
.landing-section.alt { background: var(--canvas); }
.section-head { max-width: 680px; margin-bottom: 34px; }
.section-head h2 { margin: 10px 0 12px; font-size: clamp(32px,4vw,48px); letter-spacing: -.045em; }
.section-head p { color: var(--muted); line-height: 1.6; }
.format-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.format-card { min-height: 250px; padding: 0; border: 1px solid var(--line); border-radius: 24px; background: white; overflow: hidden; }
.format-card-copy { padding: 24px 26px 27px; }
.format-image { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: contain; background: #f0f2fa; border-bottom: 1px solid var(--line); }
.format-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-weight: 900; }
.format-card h3 { margin: 24px 0 10px; font-size: 22px; }
.format-card p { color: var(--muted); line-height: 1.55; }
.rule-strip { display: grid; grid-template-columns: repeat(4,1fr); border-radius: 24px; overflow: hidden; background: #202126; color: white; }
.rule-item { padding: 30px; border-right: 1px solid #383941; }
.rule-item:last-child { border: 0; }
.rule-item strong { display: block; font-size: 24px; margin-bottom: 8px; }
.rule-item span { color: #b7bac5; font-size: 13px; line-height: 1.5; }
.landing-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px clamp(24px,7vw,112px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 18px; background: #202126; color: white; }
.sidebar .brand { height: 50px; justify-content: center; padding: 0 10px; margin-bottom: 34px; }
.brand-wordmark { display: block; width: 150px; height: auto; color: white; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; }
.sidebar-backdrop { display: none; }
.menu-button { display: none; margin-right: 4px; color: var(--ink); }
.menu-button span { display: inline-flex; }
.menu-button .icon-close, .app-shell.menu-open .menu-button .icon-menu { display: none; }
.app-shell.menu-open .menu-button .icon-close { display: inline-flex; }
@media (hover: hover) { .menu-button:hover { background: var(--blue-soft); color: var(--blue); } }
.sidebar .brand-mark { width: 34px; height: 34px; }
.sidebar-nav { display: grid; gap: 7px; }
.nav-button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: transparent; color: #bfc2cd; text-align: left; font-weight: 700; }
.nav-button:hover { background: #2b2c33; color: white; }
.nav-button.active { background: var(--blue); color: white; }
.nav-icon { width: 24px; color: currentColor; font-size: 12px; font-weight: 900; letter-spacing: .02em; }
.sidebar-profile { margin-top: auto; padding: 14px; border-radius: 15px; background: #2b2c33; }
.sidebar-profile strong { display: block; font-size: 14px; }
.sidebar-profile span { display: block; color: #aeb1bc; font-size: 12px; margin: 5px 0 12px; }
.sidebar-profile button { color: white; background: transparent; border: 0; padding: 0; font-size: 12px; text-decoration: underline; }

.main { min-width: 0; }
.topbar { height: 74px; padding: 0 34px; display: flex; gap: 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 10; }
.topbar-title { font-weight: 850; letter-spacing: -.02em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); margin-right: 4px; }
.content { padding: 32px; max-width: 1500px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading h1 { margin: 0 0 7px; font-size: 34px; letter-spacing: -.04em; }
.page-heading > .button { flex: none; white-space: nowrap; }
.page-heading p { margin: 0; color: var(--muted); }
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 24px; }
.kpi { padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: white; }
.kpi span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 13px; }
.kpi strong { font-size: 27px; letter-spacing: -.035em; }
.kpi small { display: block; margin-top: 8px; color: var(--muted); }
.kpi.highlight { background: var(--blue); border-color: var(--blue); color: white; }
.kpi.highlight span, .kpi.highlight small { color: #cbd2ff; }

.panel { border: 1px solid var(--line); border-radius: 20px; background: white; overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 18px; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.panel-body { padding: 22px; }
.split { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,.8fr); gap: 18px; }
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }
.bid-side .badge { margin-top: 2px; }
.callout { padding: 20px; border-radius: 18px; background: var(--blue-soft); color: #2d3ba5; }
.callout strong { display: block; font-size: 20px; margin-bottom: 8px; }
.callout p { margin: 0; line-height: 1.5; font-size: 13px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 850; }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.gray { background: #f0f1f5; color: #6e7482; }
.badge.red { background: var(--red-soft); color: var(--red); }
.bid-range { --progress: 0%; width: 100%; height: 28px; margin: 0; padding: 0; border: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: grab; }
.bid-range:active { cursor: grabbing; }
.bid-range:disabled { cursor: not-allowed; opacity: .5; }
.bid-range::-webkit-slider-runnable-track { height: 9px; border-radius: 999px; background: linear-gradient(90deg,var(--blue) 0 var(--progress),#e5e8f3 var(--progress) 100%); }
.bid-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 25px; height: 25px; margin-top: -8px; border: 4px solid white; border-radius: 50%; background: var(--blue); box-shadow: 0 3px 12px rgba(47,73,232,.4); }
.bid-range::-moz-range-track { height: 9px; border-radius: 999px; background: #e5e8f3; }
.bid-range::-moz-range-progress { height: 9px; border-radius: 999px; background: var(--blue); }
.bid-range::-moz-range-thumb { width: 17px; height: 17px; border: 4px solid white; border-radius: 50%; background: var(--blue); box-shadow: 0 3px 12px rgba(47,73,232,.4); }
.bid-range:focus-visible { outline: 3px solid #b7c0ff; outline-offset: 3px; border-radius: 999px; }
.bid-scale { display: flex; justify-content: space-between; gap: 14px; margin-top: -2px; color: var(--muted); font-size: 10px; }
.competition-hint { margin: 16px 0; padding: 15px 16px; border-radius: 14px; }
.competition-hint strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 14px; line-height: 1.3; }
.competition-hint p { margin: 0; color: #545969; font-size: 12px; line-height: 1.45; }
.competition-hint.red { background: #ffe4e7; }
.competition-hint.yellow { background: #fff5c9; }
.competition-hint.green { background: #ddf6eb; }
.budget-warning { display: block; margin-top: 10px; color: var(--red); font-weight: 700; }

.ranking { display: grid; gap: 8px; }
.modal-body:has(> .ranking) { padding-top: 12px; }
.rank-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; }
.rank-row.you { border-color: #aeb9ff; background: var(--blue-soft); }
.rank-pos { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f0f1f5; font-weight: 900; font-size: 13px; flex-shrink: 0; }
/* Градация мест: золото, серебро, медь, дерево; за чертой - серый.
   Металл: блик сверху-слева, ободок через inset-тени, тень под медалью. */
.rank-pos.gold, .rank-pos.silver, .rank-pos.bronze, .rank-pos.wood,
.bid-pos.gold, .bid-pos.silver, .bid-pos.bronze, .bid-pos.wood,
.obj-pos.gold, .obj-pos.silver, .obj-pos.bronze, .obj-pos.wood { text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.rank-pos.gold, .bid-pos.gold, .obj-pos.gold {
  color: #4a2f00;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.85) 0, rgba(255,255,255,0) 38%),
    radial-gradient(circle at 70% 85%, rgba(120,70,0,.35) 0, rgba(120,70,0,0) 45%),
    linear-gradient(150deg, #fff3b0 0%, #ffd23f 35%, #f0a500 60%, #ffcf3f 80%, #c97f00 100%);
  box-shadow: inset 0 0 0 2px #e6a600, inset 0 0 0 4px rgba(255,240,170,.85), inset 0 -2px 4px rgba(120,70,0,.22), 0 2px 5px rgba(190,130,0,.25);
}
.rank-pos.silver, .bid-pos.silver, .obj-pos.silver {
  color: #2f3340;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.95) 0, rgba(255,255,255,0) 40%),
    radial-gradient(circle at 70% 85%, rgba(60,66,80,.35) 0, rgba(60,66,80,0) 45%),
    linear-gradient(150deg, #ffffff 0%, #dfe3ea 35%, #aeb5c2 60%, #e3e7ee 80%, #8e96a6 100%);
  box-shadow: inset 0 0 0 2px #a3aab8, inset 0 0 0 4px rgba(255,255,255,.9), inset 0 -2px 4px rgba(60,66,80,.22), 0 2px 5px rgba(110,120,140,.22);
}
.rank-pos.bronze, .bid-pos.bronze, .obj-pos.bronze {
  color: #34160a;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,235,220,.85) 0, rgba(255,235,220,0) 38%),
    radial-gradient(circle at 70% 85%, rgba(80,30,10,.4) 0, rgba(80,30,10,0) 45%),
    linear-gradient(150deg, #ffd0b0 0%, #e08a55 35%, #b85f2c 60%, #e4936a 80%, #8a4116 100%);
  box-shadow: inset 0 0 0 2px #b25d2a, inset 0 0 0 4px rgba(255,214,190,.8), inset 0 -2px 4px rgba(80,30,10,.25), 0 2px 5px rgba(150,80,40,.25);
}
.rank-pos.wood, .bid-pos.wood, .obj-pos.wood {
  color: #4a3418;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,245,225,.55) 0, rgba(255,245,225,0) 40%),
    linear-gradient(150deg, #f4dfc0 0%, #dcb587 40%, #c49a66 70%, #a67b4c 100%);
  box-shadow: inset 0 0 0 2px #b0895a, inset 0 0 0 4px rgba(248,230,200,.75), inset 0 -2px 4px rgba(70,40,10,.22), 0 2px 5px rgba(120,85,45,.2);
}
.rank-pos.out, .bid-pos.out, .obj-pos.out { background: #eceef3; color: #8b909d; box-shadow: inset 0 0 0 1px #dfe2ea; }
.rank-name { font-size: 13px; font-weight: 750; align-self: center; }
/* Занятое по контракту место в таблице результатов модератора */
tr.quiet-row td { color: var(--muted); }
.rank-value { font-weight: 850; }
.bought-label { font-size: 13px; }

.bid-list { display: flex; flex-direction: column; }
.bid-item { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.bid-item:first-child { border-top: 0; padding-top: 0; }
.bid-item:last-child { padding-bottom: 0; }
.bid-pos { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f0f1f5; color: var(--muted); font-weight: 900; font-size: 13px; }
.bid-info { min-width: 0; }
.bid-info strong { display: block; font-size: 14px; }
.bid-info a { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bid-info a:hover { color: var(--blue); }
.bid-side { text-align: right; }
.bid-amount { display: block; font-size: 16px; font-weight: 850; font-variant-numeric: tabular-nums; }
.link-button { margin-top: 2px; padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 750; }
.link-button:hover { text-decoration: underline; }

/* Тени по краям появляются только когда таблица шире обёртки - подсказка, что её можно листать. */
.table-wrap { overflow-x: auto; background:
  linear-gradient(90deg, white 30%, rgba(255,255,255,0)) 0 0,
  linear-gradient(90deg, rgba(255,255,255,0), white 70%) 100% 0,
  radial-gradient(farthest-side at 0 50%, rgba(29,39,95,.18), rgba(29,39,95,0)) 0 0,
  radial-gradient(farthest-side at 100% 50%, rgba(29,39,95,.18), rgba(29,39,95,0)) 100% 0;
  background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
.bids-table th:nth-child(2), .bids-table td:nth-child(2) { min-width: 230px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; vertical-align: middle; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; background: #fafbfe; }
tr:last-child td { border-bottom: 0; }
.money { font-variant-numeric: tabular-nums; font-weight: 800; }
.actions-inline { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.empty { padding: 45px 24px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 7px; }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: #555b6b; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dfe2ec; border-radius: 11px; padding: 11px 12px; background: white; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field .bid-range { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.field textarea { min-height: 92px; resize: vertical; }
.field .prefixed { display: flex; align-items: center; border: 1px solid #dfe2ec; border-radius: 11px; background: white; }
.field .prefixed:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field .prefixed .prefix { padding: 11px 0 11px 12px; color: var(--muted); user-select: none; }
.field .prefixed input { border: 0; border-radius: 0; padding-left: 2px; background: transparent; }
.field .prefixed input:focus { border: 0; box-shadow: none; }
.field small { color: var(--muted); font-size: 11px; }
.input-limit { color: var(--muted); font-size: 11px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.lot-create-actions { align-self: end; margin-top: 0; }
.login-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.login-actions .button { text-align: center; text-decoration: none; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(14,15,21,.58); backdrop-filter: blur(6px); }
.modal { width: min(620px,100%); max-height: min(760px,calc(100vh - 40px)); overflow: auto; border-radius: 24px; background: white; box-shadow: 0 35px 100px rgba(0,0,0,.28); }
/* Скролл внутри модалки есть, но полоса прокрутки скрыта. */
.modal { scrollbar-width: none; }
.modal::-webkit-scrollbar { display: none; }
.modal.narrow { width: min(450px,100%); }
.modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 22px; }
.modal-head p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.modal-close { border: 0; width: 34px; height: 34px; border-radius: 10px; background: #f2f3f7; font-size: 18px; }
.modal-close:disabled { opacity: .5; cursor: not-allowed; }
/* Защищённая модалка выше мобильной шапки (z-index 60); подтверждение закрытия ещё выше, тост (80) над всем. */
.modal-backdrop.guarded { z-index: 70; }
.confirm-backdrop { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 20px; background: rgba(14,15,21,.4); }
.confirm { width: min(420px,100%); padding: 22px 24px; border-radius: 20px; background: white; box-shadow: 0 25px 70px rgba(0,0,0,.3); }
.confirm h3 { margin: 0 0 6px; font-size: 18px; }
.confirm p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.confirm .form-actions { margin-top: 18px; }
.confirm-body .confirm-question { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.confirm-body .confirm-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.modal:focus { outline: none; }
.button.icon-only { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.button.icon-only.trash { color: var(--red); border-color: #f3d3d8; }
.button.icon-only.trash:hover { background: var(--red-soft); }
.modal-body { padding: 24px; }
.action-confirm .modal-head { padding: 20px 20px 12px; align-items: center; border-bottom: 0; }
.action-confirm .modal-head h2 { font-size: 18px; line-height: 1.3; }
.action-confirm .confirm-body { padding: 0 20px 20px; }
.action-confirm .form-actions { margin-top: 20px; }
.action-confirm .form-actions .button { min-width: 112px; min-height: 40px; padding: 10px 16px; font-size: 14px; }
.notice { padding: 13px 15px; border-radius: 12px; background: var(--red-soft); color: #a83241; font-size: 12px; line-height: 1.5; margin-bottom: 16px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; width: min(390px,calc(100vw - 48px)); padding: 15px 17px; border-radius: 14px; color: white; background: #202126; box-shadow: var(--shadow); animation: toast-in .22s ease; font-size: 13px; }
.toast.success { background: #14865f; }
.toast.error { background: #b93d4a; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .auction-visual { min-height: 410px; }
  .format-grid, .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .rule-strip { grid-template-columns: repeat(2,1fr); }
  .rule-item:nth-child(2) { border-right: 0; }
  .split { grid-template-columns: 1fr; }
}

/* на планшете заголовку и подписи о закрытии торгов вместе не хватает ширины - оставляем только индикатор */
@media (max-width: 900px) { .topbar-meta span:not(.status-dot) { display: none; } }
@media (max-width: 760px) {
  .landing-links a { display: none; }
  .hero { padding-top: 52px; }
  .hero h1 { font-size: 46px; }
  /* на телефоне чипам негде плавать - они ложились на заголовок и подписи подиума; ставим их под карточку */
  .auction-visual { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 0; padding: 36px 0 20px; }
  .visual-orbit { width: 330px; height: 330px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
  .visual-card { width: 320px; padding: 22px; margin-bottom: 10px; order: -1; }
  .float-chip, .float-chip.one, .float-chip.two { position: static; }
  .format-grid, .kpi-grid, .form-grid { grid-template-columns: 1fr; }
  .rule-strip { grid-template-columns: 1fr; }
  .rule-item { border-right: 0; border-bottom: 1px solid #383941; }
  .app-shell { display: block; }
  /* Шапка всегда белая и поверх меню: мобильные браузеры красят свою панель по верху страницы,
     поэтому меню и затемнение выезжают строго под шапкой (top = высота шапки). */
  .sidebar { position: fixed; top: 60px; left: 0; bottom: 0; z-index: 50; width: min(288px, 85vw); height: auto; padding-top: 18px; overflow-y: auto; overscroll-behavior: contain; transform: translateX(-100%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; }
  .app-shell.menu-open .sidebar { transform: none; visibility: visible; box-shadow: var(--shadow); transition-delay: 0s; }
  .sidebar .brand { margin-bottom: 20px; }
  .sidebar .brand-wordmark { color: var(--blue); }
  /* На телефоне меню светлое: iOS Safari переключает панель браузера в тёмную тему, если под ней тёмный блок. */
  .sidebar { background: var(--surface); color: var(--ink); border-right: 1px solid var(--line); }
  .sidebar .nav-button { color: #4a4f60; }
  .sidebar .nav-button:hover { background: var(--blue-soft); color: var(--ink); }
  .sidebar .nav-button.active { background: var(--blue); color: white; }
  .sidebar-profile { background: var(--canvas); border: 1px solid var(--line); }
  .sidebar-profile strong { color: var(--ink); }
  .sidebar-profile span { color: var(--muted); }
  .sidebar-profile button { color: var(--blue); }
  .sidebar-backdrop { background: rgba(24,25,31,.35); }
  .sidebar-backdrop { display: block; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(24,25,31,.45); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s; }
  .app-shell.menu-open .sidebar-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
  .menu-button { display: inline-flex; }
  .topbar { height: 60px; padding: 0 12px 0 10px; gap: 8px; z-index: 60; background: white; backdrop-filter: none; }
  .topbar-title { font-size: 15px; }
  .topbar-meta span:not(.status-dot) { display: none; }
  .content { padding: 22px 16px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .landing-footer { align-items: flex-start; flex-direction: column; }
  .field.full { grid-column: auto; }
  .bid-control { padding: 15px; }
  .bid-control-actions { align-items: stretch; flex-direction: column; }
  .bid-control-actions > .button, .bid-control-actions .actions-inline, .bid-control-actions .actions-inline .button { width: 100%; }
  .bid-modal-summary { align-items: flex-start; }
  .field .bid-amount-input { width: 150px; font-size: 24px; }
}

/* Раздел «Лоты»: список слева, панель выбранного лота справа */
.lot-create-toolbar { width: 300px; max-width: 100%; margin-bottom: 12px; }
.lot-create-toolbar .button { width: 100%; }
.lot-editor { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.lot-editor > * { min-width: 0; }
.lot-list { display: grid; gap: 4px; }
.lot-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; background: transparent; border: 1px solid transparent; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.lot-item:hover { background: white; }
.lot-item.active { background: white; border-color: var(--line); }
.lot-item b { font-size: 14px; letter-spacing: -.01em; }
.lot-item.active b { color: var(--blue); }
.lot-item span { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lot-pane { border-radius: 22px; }
.lot-pane-head { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.lot-pane-title { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.lot-pane-title h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.lot-pane-title .button.icon-only { width: 28px; height: 28px; color: var(--muted); border-color: transparent; }
.lot-pane-title .button.icon-only:hover { color: var(--blue); background: var(--blue-soft); }
.lot-pane-head p { margin: 0; color: var(--muted); font-size: 13px; }
.lot-kpi { display: flex; gap: 28px; }
.lot-kpi div { text-align: right; }
.lot-kpi b { display: block; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lot-kpi span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lot-pane-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.lot-pane-body > div { padding: 24px 28px; }
.lot-pane-body > div + div { border-left: 1px solid var(--line); background: #fafbfe; }
.lot-fields { display: grid; gap: 12px; }
.lot-fields.three { grid-template-columns: repeat(3, 1fr); }
.lot-fields.two { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
.lot-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; white-space: nowrap; }
.lot-field label small { font-size: 11px; color: var(--muted); }
.lot-field > small { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.lot-stepper { display: grid; grid-template-columns: 34px 1fr 34px; height: 42px; border-radius: 12px; background: var(--blue-soft); overflow: hidden; }
.lot-stepper:focus-within { box-shadow: 0 0 0 2px var(--blue); }
.lot-stepper button { border: 0; background: transparent; color: var(--blue); font-size: 18px; cursor: pointer; }
.lot-stepper button:hover { background: #dfe5ff; }
.lot-stepper input { border: 0; background: transparent; text-align: center; font: inherit; font-size: 15px; font-weight: 700; color: var(--blue-dark); font-variant-numeric: tabular-nums; min-width: 0; outline: none; }
.lot-taken { margin-top: 22px; }
.lot-when { margin-top: 22px; }
.lot-when input { width: 100%; max-width: 260px; height: 42px; padding: 0 13px; border: 0; border-radius: 12px; background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; outline: none; }
.lot-when input:focus { box-shadow: 0 0 0 2px var(--blue); }
.lot-when input:disabled { opacity: .6; cursor: not-allowed; }
/* Занятые места лота: номер отмечается кликом, в аукционе такое место не разыгрывается */
.slot-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.slot-chip { width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line); background: white; font: inherit; font-size: 13px; font-weight: 700; color: var(--blue-dark); cursor: pointer; font-variant-numeric: tabular-nums; padding: 0; }
.slot-chip:hover { border-color: var(--blue); }
.slot-chip.taken { background: #f0f1f5; border-color: #dfe2ea; color: #8b909d; text-decoration: line-through; }
/* Те же поля в модалке создания лота: убираем оформление обычных полей формы */
.field.lot-rules { display: block; }
.field.lot-rules .lot-stepper input { width: 100%; padding: 0; }
.field.lot-rules .lot-stepper input:focus { border: 0; box-shadow: none; }
.lot-ranking-wrap { min-width: 0; }
.lot-ranking-wrap h4 { margin: 0 0 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.lot-ranking-wrap .ranking { max-height: 480px; overflow-y: auto; scrollbar-width: none; }
.lot-ranking-wrap .ranking::-webkit-scrollbar { display: none; }
.lot-ranking-wrap .rank-name { min-width: 0; overflow-wrap: anywhere; }

.lot-pane-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 14px 28px; border-top: 1px solid var(--line); }
@media (max-width: 1100px) { .lot-editor { grid-template-columns: 1fr; } .lot-pane-body { grid-template-columns: 1fr; } .lot-pane-body > div + div { border-left: 0; border-top: 1px solid var(--line); } .lot-pane-head { grid-template-columns: 1fr; } .lot-kpi div { text-align: left; } }
/* до 860px панель лота уже ~450px: три степпера и два datetime-поля в ряд не помещаются и вылезали за край */
@media (max-width: 860px) { .lot-fields.three, .lot-fields.lot-when { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .lot-fields.three, .lot-fields.two { grid-template-columns: 1fr; } .lot-pane-head, .lot-pane-body > div, .lot-pane-foot { padding-left: 18px; padding-right: 18px; } }
[hidden] { display: none !important; }
.field.topup-note { display: block; padding: 13px 15px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; line-height: 1.55; }
.topup-note a { color: var(--blue); font-weight: 600; }
.file-pick { display: flex; align-items: center; gap: 12px; }
.file-pick .button { cursor: pointer; }
.file-pick-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.file-pick-input:focus-visible + .file-pick-name { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.file-pick-name { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Раздел «Аукционы» у поставщика: витрина карточек и страница лота с сеткой рекламных мест */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shelf-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: white; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.shelf-card:hover { border-color: #c9d0ff; box-shadow: 0 16px 40px rgba(29,39,95,.12); transform: translateY(-2px); }
.shelf-shot { padding: 12px 12px 0; background: linear-gradient(180deg, #e9ecf6 0%, #f6f7fc 100%); }
.shelf-shot img { display: block; width: 100%; height: clamp(92px, 15vh, 200px); object-fit: cover; object-position: left top; border-radius: 12px 12px 0 0; box-shadow: 0 12px 26px rgba(29,39,95,.18); }
.shelf-body { display: flex; flex-direction: column; gap: 7px; padding: 12px 15px 13px; flex: 1; }
.shelf-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.shelf-card h3 { margin: 0; font-size: 15.5px; line-height: 1.2; letter-spacing: -.02em; }
.shelf-card p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.35; }
.shelf-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.shelf-foot .button { flex: none; }
.shelf-mine { font-size: 12px; color: var(--muted); line-height: 1.3; }
.shelf-mine b { color: var(--ink); font-size: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 0; color: var(--muted); font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.back-link:hover { color: var(--blue); }
/* Страница лота живёт в один экран, поэтому панели под витриной идут в компактной посадке */
.lot-pane-tight .panel-head { padding: 14px 18px; }
.lot-pane-tight .panel-head h2 { font-size: 16px; }
.lot-pane-tight .panel-head p { margin-top: 3px; font-size: 12px; }
.lot-pane-tight .panel-body { padding: 16px 18px; }
.lot-cols .competition-hint { margin: 0; padding: 9px 12px; }
.lot-cols .competition-hint strong { margin-bottom: 3px; font-size: 13px; }
.lot-cols .competition-hint p { font-size: 11.5px; }
.lot-cols .field label { font-size: 11.5px; }
.lot-cols .field input { padding: 9px 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; }
.fact { padding: 9px 13px; border-radius: 12px; background: white; border: 1px solid var(--line); }
.fact span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fact strong { font-size: 15px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lot-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 16px; margin-top: 12px; align-items: stretch; }
.lot-cols .panel + .panel { margin-top: 0; }

/* Сетка рекламных мест: серые заглушки чужих позиций, поверх них ездит карточка «вы» */
.pg-frame { border-radius: 20px; background: linear-gradient(180deg, #ffffff 0%, #f7f8fd 100%); border: 1px solid var(--line); padding: 14px 20px 18px; }
.pg-frame-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.pg-frame-head h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.pg-frame-head span { font-size: 12px; color: var(--muted); }
.pg { position: relative; display: grid; gap: 12px; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); --pg-cell: clamp(48px, 7.6vh, 104px); max-width: calc(var(--cols) * var(--pg-cell) + (var(--cols) - 1) * 12px); }
.pg-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.pg-num { position: absolute; z-index: 3; top: -7px; left: -7px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: white; border: 1px solid var(--line); color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.pg-cell.under .pg-num { opacity: 0; }
.pg-cell.under .pg-avatar, .pg-cell.under .pg-cap, .pg-cell.under .pg-thumb { opacity: 0; }
.pg-avatar { width: 100%; aspect-ratio: 1; border-radius: 50%; background: #e9ebf3; transition: opacity .2s ease; }
.pg-thumb { width: 100%; aspect-ratio: 1; border-radius: 14px; background: #e9ebf3; transition: opacity .2s ease; }
.pg-avatar[data-bird], .pg-thumb[data-bird] { overflow: hidden; }
/* картинка птицы уже скадрирована под плитку в масштабе своего маскота (assets/birds) */
.pg-bird { display: block; width: 100%; height: 100%; }
/* подпись ужимается вместе с плиткой (cqw от ширины ячейки), чтобы «Внимательный» не налезал на соседей */
.pg-cell, .pg-me { container-type: inline-size; }
.pg-cap { font-size: clamp(7px, 15.5cqw, 11.5px); color: var(--muted); text-align: center; line-height: 1.2; transition: opacity .2s ease; }
.pg-sub { display: contents; }
/* Другая ваша ставка в этом же лоте: тот же маскот, но приглушённый - редактируется не она */
.pg-me.pg-mine { z-index: 2; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; pointer-events: auto; }
.pg-mine .pg-avatar, .pg-mine .pg-thumb, .pg-mine img { transition: box-shadow .18s ease, opacity .18s ease, filter .18s ease; }
@media (hover: hover) { .pg-mine:hover .pg-avatar, .pg-mine:hover .pg-thumb { box-shadow: inset 0 0 0 2px var(--blue); } .pg-mine:hover .pg-avatar img, .pg-mine:hover .pg-thumb img { opacity: .8; filter: none; } }
.pg-mine:focus-visible { outline: none; }
.pg-mine:focus-visible .pg-avatar, .pg-mine:focus-visible .pg-thumb { box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 3px #c6cdff; }
.pg-mine .pg-avatar, .pg-mine .pg-thumb { position: relative; overflow: hidden; background: var(--blue-soft); box-shadow: inset 0 0 0 2px #c6cdff; }
.pg-mine .pg-avatar img { position: absolute; left: 50%; top: 6%; height: 116%; width: auto; transform: translateX(-50%); filter: grayscale(.55); opacity: .5; }
.pg-mine .pg-thumb img { position: absolute; left: 50%; bottom: -2%; height: 104%; width: auto; transform: translateX(-50%); filter: grayscale(.55); opacity: .5; }
.pg-mine .pg-cap { color: var(--blue); font-weight: 700; }
.pg-me { position: absolute; top: 0; left: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .42s cubic-bezier(.22,.72,.26,1); pointer-events: none; }
.pg-me > * { flex: none; }
.pg-num.is-me { background: var(--blue); border-color: var(--blue); color: white; }
.pg-avatar.is-me, .pg-thumb.is-me { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 50% 0%, #6f86ff 0%, #2f49e8 62%, #1e32bd 100%); box-shadow: 0 12px 26px rgba(47,73,232,.3); }
.pg-avatar.is-me img { position: absolute; left: 50%; top: 6%; height: 116%; width: auto; transform: translateX(-50%); }
.pg-thumb.is-me img { position: absolute; left: 50%; bottom: -2%; height: 104%; width: auto; transform: translateX(-50%); }
/* бейдж «Топ» масштабируется вместе с плиткой (cqw от ширины .pg-thumb), как на карточке товара wikkeo */
.pg-thumb { container-type: inline-size; }
.pg-top { position: absolute; top: 6cqw; right: 6cqw; padding: 1.5cqw 6.5cqw; border-radius: 999px; background: #ff5bd8; color: white; font-size: max(6.5px, 10cqw); line-height: 1.35; font-weight: 800; }
.pg-cap.is-me { color: var(--blue); font-weight: 800; white-space: nowrap; }
.pg-me.pop .pg-avatar, .pg-me.pop .pg-thumb { animation: pg-pop .42s cubic-bezier(.22,.9,.3,1); }
@keyframes pg-pop { 0% { transform: scale(.86); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* Редактор ставки и список объектов поставщика в лоте */
.bid-edit { display: grid; gap: 13px; }
.bid-dock { display: grid; gap: 13px; }
.bid-dock-slot:empty { display: none; }
/* Телефон: док со ставкой и ползунком прилипает к низу экрана, пока сетка мест на экране,
   а дальше встаёт в поток перед остальными полями ставки. */
@media (max-width: 760px) {
  .bid-dock-slot { position: sticky; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 5; margin-top: 12px; padding: 12px 16px 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 -6px 28px rgba(20,30,60,.14), 0 4px 14px rgba(20,30,60,.08); }
  .bid-dock-slot .bid-dock { gap: 8px; }
  .bid-dock-slot .bid-edit-amount strong, .bid-dock-slot .bid-edit-place strong { font-size: 24px; }
  .bid-dock-slot .bid-edit-amount span, .bid-dock-slot .bid-edit-place span { margin-bottom: 2px; font-size: 10px; }
  .bid-dock-slot .bid-range { height: 30px; }
  .lot-stage + .lot-cols { margin-top: 12px; }
}
.bid-edit-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.bid-edit-amount span, .bid-edit-place span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.bid-edit-amount strong { font-size: 30px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.bid-edit-place { text-align: right; }
.bid-edit-place strong { font-size: 30px; letter-spacing: -.04em; color: var(--blue); }
.bid-edit-place small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.bid-edit-place .out { font-size: 20px; font-weight: 800; color: var(--muted); letter-spacing: -.01em; }
.edit-actions { display: flex; gap: 10px; }
.obj-list { display: grid; gap: 7px; }
.obj-with-cancel { display: grid; gap: 4px; }
.obj-cancel { justify-self: end; border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 4px 8px; cursor: pointer; }
.obj-cancel:hover, .obj-cancel:focus-visible { color: #ed4660; }
.obj { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 13px; background: white; text-align: left; width: 100%; }
.obj:hover { border-color: #c9d0ff; }
.obj.active { border-color: var(--blue); background: var(--blue-soft); }
.obj-pos { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f0f1f5; font-size: 11.5px; font-weight: 900; font-variant-numeric: tabular-nums; }
.obj-text b { display: block; font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obj-text span { display: block; font-size: 11px; color: var(--muted); }
.obj-amount { font-weight: 850; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.obj-add { border: 1px dashed #c9d0ff; border-radius: 13px; background: transparent; color: var(--blue); font-weight: 750; font-size: 13px; padding: 10px; width: 100%; }
.obj-add:hover, .obj-add.active { background: var(--blue-soft); }

@media (max-width: 1000px) { .lot-cols { grid-template-columns: 1fr; } }
/* Ширина карточки не влияет на её высоту, поэтому число колонок подбирается только под ширину экрана */
@media (max-width: 1499px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1099px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .shelf { grid-template-columns: 1fr; } }
/* На узком экране мест в ряду меньше, иначе кружки становятся нечитаемыми */
/* на 1024 десять плиток в ряд ужимались до 47px и подписи становились нечитаемыми - раньше переносим в два ряда */
@media (max-width: 1100px) { .pg.shops, .pg.products { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pg.shops { grid-template-columns: repeat(5, minmax(0, 1fr)); } .pg.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pg.shops { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pg.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-height: 960px) {
  .pg { --pg-cell: clamp(44px, 6.4vh, 88px); gap: 10px; }
  .pg-frame { padding: 14px 20px 16px; }
  .pg-frame-head { margin-bottom: 10px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading { margin-bottom: 18px; }
  .bid-edit { gap: 10px; }
  .bid-edit-amount strong, .bid-edit-place strong { font-size: 26px; }
  .lot-pane-tight .panel-head { padding: 11px 16px; }
  .lot-pane-tight .panel-body { padding: 13px 16px; }
  .lot-cols .competition-hint { padding: 9px 12px; }
  .lot-cols { margin-top: 12px; gap: 12px; }
}
@media (max-width: 640px) { .pg-frame { padding: 16px 14px 18px; } .pg { gap: 10px; } .pg-cap { font-size: clamp(7px, 15.5cqw, 10.5px); } .bid-edit-amount strong, .bid-edit-place strong { font-size: 26px; } }
