:root {
  --ink: #0e1116;
  --text: #3d444e;
  --muted: #5b6370;
  --line: #e4e7eb;
  --line-2: #cbd0d6;
  --soft: #f4f5f7;
  --hero: #f2f0eb;
  --img: #f0f2f4;
  --brand: #f77f00;
  --brand-hover: #e57500;
  --brand-text: #a95400;
  --brand-soft: #fff1e0;
  --green: #15803d;
  --green-soft: #e7f5ec;
  --sale: #c81e1e;
  --sale-soft: #fdecec;
}

* { box-sizing: border-box; }
html { min-width: 280px; -webkit-text-size-adjust: 100%; }
body { min-width: 280px; margin: 0; overflow-x: hidden; background: #fff; color: var(--ink); font: 15px/1.5 Onest, system-ui, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and progress */
.top { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.top-in { width: min(100%, 600px); margin: 0 auto; padding: calc(10px + env(safe-area-inset-top)) 16px 12px; }
.top-row { display: flex; min-width: 0; align-items: center; gap: 10px; }
.icon-btn { display: inline-flex; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.ttl { min-width: 0; flex: 1; text-align: center; line-height: 1.25; }
.ttl b { display: block; overflow: hidden; font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ttl span { display: block; color: var(--muted); font-size: 12px; }
.ttl span.ok { color: var(--green); }
.stepn { min-width: 44px; flex: none; color: var(--muted); font-size: 14px; text-align: right; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.steps li { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11.5px; font-weight: 500; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.steps li::before { display: block; height: 4px; margin-bottom: 5px; border-radius: 4px; background: var(--line); content: ""; }
.steps li.done::before, .steps li.cur::before { background: var(--brand); }
.steps li.cur { color: var(--ink); font-weight: 600; }

/* Main layout */
main { width: min(100%, 600px); min-height: 55dvh; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-left)) calc(148px + env(safe-area-inset-bottom)); outline: 0; }
main:focus, main:focus-visible { outline: 0; }
h1 { margin: 0 0 4px; font-size: clamp(25px, 7vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.lead { margin: 0; color: var(--text); }
.req { color: var(--brand-text); }
.kind-followup { scroll-margin-top: 118px; }
.sec { margin-top: 26px; }
.sec + .sec { padding-top: 24px; border-top: 1px solid var(--line); }
.sec h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.sec .sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.opt { margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12.5px; font-weight: 500; vertical-align: 2px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 12px; margin-top: 14px; }
.fld { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.fld.full, .full { grid-column: 1 / -1; }
.fld > .lbl, .field-label { font-size: 14px; font-weight: 600; }
.hint { color: var(--muted); font-weight: 400; }
.help { margin: 0; color: var(--muted); font-size: 12.5px; }
.err { display: none; margin: 0; color: var(--sale); font-size: 13px; font-weight: 500; }
.fld.bad .err { display: block; }
.kind-picker.bad .err, .tyre-subtype-picker.bad .err { display: block; margin-top: 8px; }
.fld.bad .inp, .fld.bad .unit, .fld.bad .combo .inp { border-color: var(--sale); box-shadow: 0 0 0 3px var(--sale-soft); }
.fld.bad .chips, .fld.bad .seg { border-radius: 12px; outline: 2px solid var(--sale-soft); outline-offset: 3px; }
.kind-picker.bad .kinds, .tyre-subtype-picker.bad .seg { border-radius: 14px; outline: 2px solid var(--sale-soft); outline-offset: 3px; }

/* Inputs */
.inp { width: 100%; min-width: 0; min-height: 50px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 14px; outline: 0; background: #fff; font-size: 16px; -webkit-appearance: none; appearance: none; }
textarea.inp { min-height: 150px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.inp:focus, .unit:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px #ffe7cc; }
.inp.up { text-transform: uppercase; }
.inp.up::placeholder { text-transform: none; }
.select-inp {
  padding-right: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235b6370' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.unit { display: flex; overflow: hidden; align-items: center; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; }
.unit .inp { min-width: 0; flex: 1; border: 0; border-radius: 0; box-shadow: none; }
.unit .u { display: flex; align-self: stretch; align-items: center; padding: 0 14px; border-left: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: 14px; }
.price-big .inp { min-height: 58px; font-size: 22px; font-weight: 600; }
.price-big .u { color: var(--ink); font-size: 18px; font-weight: 600; }
.auto-title { display: flex; margin-top: 14px; padding: 14px 16px; border: 1px solid #f5d2aa; border-radius: 14px; background: #fffaf4; flex-direction: column; gap: 3px; }
.auto-title b { overflow-wrap: anywhere; font-size: 16px; font-weight: 600; }
.auto-title span { color: var(--muted); font-size: 12.5px; }

/* Kind, chips and segments */
.kinds { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 18px; }
.kind { display: flex; min-width: 0; min-height: 84px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 6px; border: 1px solid #dadde1; border-radius: 14px; background: #fff; cursor: pointer; text-align: center; }
.kind .ic { display: flex; width: auto; height: auto; align-items: center; justify-content: center; background: none; color: var(--muted); }
.kind .ic svg { width: 26px; height: 26px; stroke-width: 1.5; }
.kind b { overflow-wrap: anywhere; color: var(--text); font-size: 13.5px; font-weight: 400; line-height: 1.2; }
.kind[aria-pressed="true"] { border-color: var(--brand); background: #fffaf4; box-shadow: 0 0 0 1px var(--brand); }
.kind[aria-pressed="true"] .ic { background: none; color: #c25f00; }
.kind[aria-pressed="true"] b { color: var(--ink); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.chip:hover { border-color: #a9afb8; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip.multi[aria-pressed="true"]::before { width: 12px; height: 7px; margin-right: 1px; border: solid #fff; border-width: 0 0 2.2px 2.2px; content: ""; transform: rotate(-45deg) translate(1px,-2px); }
.swc { width: 16px; height: 16px; flex: none; border: 1px solid rgba(0,0,0,.18); border-radius: 50%; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--soft); }
.seg button { min-width: 0; min-height: 44px; flex: 1; padding: 0 6px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(14,17,22,.12); }

/* Contact step */
.contact-page > .lead { color: var(--muted); }
.contact-form-card { margin-top: 22px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.contact-required-note { margin: -2px 0 14px; color: var(--muted); font-size: 12.5px; text-align: right; }
.contact-sec + .contact-sec { margin-top: 26px; padding-top: 26px; border-top: 2px solid var(--brand); }
.contact-sec h2 { margin: 0; color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.contact-sec-hint { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.contact-sec > .grid { grid-template-columns: minmax(0,1fr); margin-top: 16px; gap: 16px; }
.contact-sec .fld > .lbl, .contact-hours-label { color: var(--ink); font-size: 14px; font-weight: 500; }
.contact-mode-field { gap: 8px; }
.contact-seller-mode { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 4px; border-radius: 999px; background: var(--soft); isolation: isolate; }
.contact-seller-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(14,17,22,.12), 0 5px 14px -8px rgba(14,17,22,.25); opacity: 0; transition: transform .2s ease, opacity .15s ease; }
.contact-seller-mode[data-selected="private"] .contact-seller-thumb { opacity: 1; transform: translateX(0); }
.contact-seller-mode[data-selected="business"] .contact-seller-thumb { opacity: 1; transform: translateX(100%); }
.contact-seller-mode button { position: relative; z-index: 1; display: flex; min-width: 0; min-height: 50px; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 500; cursor: pointer; }
.contact-seller-mode button[aria-pressed="true"] { color: var(--ink); }
.contact-seller-mode button[aria-pressed="true"] svg { color: var(--brand-text); }
.contact-mode-note { margin: 0; color: var(--muted); font-size: 13px; }
.contact-mode-field.bad .contact-seller-mode { outline: 2px solid var(--sale); outline-offset: 2px; }
.contact-phone-row { display: flex; overflow: hidden; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; }
.contact-phone-prefix { display: flex; width: 76px; flex: none; align-items: center; justify-content: center; border-right: 1px solid var(--line); background: var(--soft); color: var(--text); font-weight: 500; }
.contact-phone-row .inp { border: 0; border-radius: 0; box-shadow: none; }
.fld.bad .contact-phone-row { border-color: var(--sale); box-shadow: 0 0 0 3px var(--sale-soft); }
.contact-method-field { gap: 3px; }
.contact-method-help { margin: 0 0 4px; color: var(--muted); font-size: 12.5px; }
.contact-methods { display: flex; flex-direction: column; }
.contact-method { display: flex; width: 100%; align-items: flex-start; gap: 14px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.contact-method:first-child { padding-top: 6px; }
.contact-method:last-child { padding-bottom: 6px; border-bottom: 0; }
.contact-method-copy { min-width: 0; flex: 1; }
.contact-method-copy b { display: block; font-size: 14.5px; font-weight: 500; }
.contact-method-copy small { display: block; margin-top: 1px; color: var(--muted); font-size: 13px; }
.contact-switch-ui { position: relative; width: 46px; height: 28px; flex: none; margin-top: 1px; border-radius: 999px; background: var(--line-2); transition: background .15s; }
.contact-switch-ui::after { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); content: ""; transition: transform .15s; }
.contact-method[aria-pressed="true"] .contact-switch-ui { background: var(--green); }
.contact-method[aria-pressed="true"] .contact-switch-ui::after { transform: translateX(18px); }
.contact-method-field.bad .contact-methods { border-radius: 10px; outline: 2px solid var(--sale-soft); outline-offset: 2px; }
.contact-hours { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.contact-hours-row { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.contact-location-toggle { padding: 0; }
.contact-location-toggle .sw-row { padding: 4px 0 0; border-bottom: 0; }
.contact-warning { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 11px 13px; border-radius: 12px; background: var(--brand-soft); color: #7a3e00; font-size: 13.5px; }
.contact-warning svg { flex: none; margin-top: 1px; }
.contact-legal { margin: 0; color: var(--muted); font-size: 12.5px; }
.contact-password-input { position: relative; }
.contact-password-input .inp { padding-right: 112px; }
.contact-password-toggle { position: absolute; top: 5px; right: 5px; bottom: 5px; display: inline-flex; min-width: 96px; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--soft); color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.contact-password-toggle:hover { background: var(--line); color: var(--ink); }
.contact-password-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fld.bad .contact-password-input .inp { border-color: var(--sale); box-shadow: 0 0 0 3px var(--sale-soft); }
.contact-mobile-preview { margin-top: 28px; }
.contact-mobile-preview > h2 { margin: 0; color: var(--ink); font-size: 18px; font-weight: 600; }
.contact-pv { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(14,17,22,.06); }
.contact-pv-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.contact-pv-badges span { padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 12px; font-weight: 600; }
.contact-pv-seller { display: flex; align-items: center; gap: 12px; }
.contact-pv-av { display: grid; width: 48px; height: 48px; flex: none; place-items: center; border-radius: 14px; background: var(--hero); color: var(--brand-text); font-weight: 700; }
.contact-pv-seller b { display: block; overflow-wrap: anywhere; font-size: 16px; font-weight: 600; line-height: 1.3; }
.contact-pv-seller div > span { display: block; color: var(--muted); font-size: 13.5px; }
.contact-pv-list { margin-top: 14px; }
.contact-pv-list > div { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.contact-pv-list small { display: block; color: var(--muted); font-size: 12.5px; }
.contact-pv-ic { display: flex; width: 22px; flex: none; justify-content: center; color: var(--brand-text); }
.contact-pv-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.contact-pv-actions button { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; cursor: default; }
.contact-pv-actions .call { border-color: var(--green); background: var(--green); color: #fff; }
.contact-pv-actions button:disabled { opacity: .32; }
.contact-pv-privacy { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.review-edits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.review-edits button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.review-edits button:hover { border-color: var(--ink); }
.review-missing { margin: 0 0 18px; }

/* Searchable dropdowns */
.combo { position: relative; min-width: 0; }
.combo .inp { padding-right: 42px; }
.combo .chev { position: absolute; top: 50%; right: 14px; margin-top: -6px; pointer-events: none; }
.combo .cx { position: absolute; top: 50%; right: 10px; display: flex; width: 24px; height: 24px; margin-top: -12px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: var(--soft); cursor: pointer; }
.combo-list { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; left: 0; max-height: min(260px, 42dvh); margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 14px 34px rgba(14,17,22,.18); list-style: none; -webkit-overflow-scrolling: touch; }
.combo-list li { display: flex; min-height: 44px; align-items: center; padding: 0 12px; border-radius: 10px; font-size: 15px; cursor: pointer; }
.combo-list li:hover, .combo-list li.on { background: var(--soft); }
.combo-list li[aria-selected="true"] { color: var(--brand-text); font-weight: 600; }
.combo-list li.free { color: var(--brand-text); font-weight: 600; }
.combo-list .gh { min-height: 0; padding: 8px 12px 4px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }

/* Details, compatibility and switches */
details.more { margin-top: 18px; padding: 0 16px; border: 1px solid var(--line); border-radius: 18px; }
details.more > summary { display: flex; min-height: 58px; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary .cnt { margin-left: auto; color: var(--brand-text); font-size: 13px; }
details.more > summary svg { flex: none; transition: transform .15s; }
details.more[open] > summary svg { transform: rotate(180deg); }
details.more .in { display: flex; padding: 2px 0 18px; flex-direction: column; gap: 16px; }
.xg > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.box { margin-top: 14px; padding: 0 16px; border: 1px solid var(--line); border-radius: 18px; }
.sw-row { display: flex; width: 100%; align-items: center; gap: 14px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.sw-row:last-child { border-bottom: 0; }
.sw-row .tx { min-width: 0; flex: 1; }
.sw-row .tx b { display: block; font-size: 15px; font-weight: 600; }
.sw-row .tx span { display: block; color: var(--muted); font-size: 13px; }
.sw { position: relative; width: 46px; height: 28px; flex: none; border-radius: 999px; background: var(--line-2); transition: background .15s; }
.sw::after { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); content: ""; transition: transform .15s; }
.sw-row[aria-checked="true"] .sw { background: var(--green); }
.sw-row[aria-checked="true"] .sw::after { transform: translateX(18px); }
.compat { display: flex; margin-top: 14px; flex-direction: column; gap: 10px; }
.crow { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; }
.crow .rm { position: absolute; top: -10px; right: -8px; display: flex; width: 30px; height: 30px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.crow .inp { min-height: 46px; font-size: 15px; }
.add-row { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.draft { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 12px; border-radius: 14px; background: var(--soft); color: var(--text); font-size: 13.5px; }
.draft span { flex: 1; }
.draft button { padding: 6px 2px; border: 0; background: transparent; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Contextual OEM advice */
.fld .help:has(.tipb) { margin-top: 4px; }
.tipb { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #f7e3a6; border-radius: 10px; background: #fff9e6; color: #5b4a12; font-size: 13px; line-height: 1.45; animation: tipIn .5s cubic-bezier(.2,.7,.2,1) both; }
.tipb b { color: #3d3108; font-weight: 600; }
.tipb .bulb { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border-radius: 50%; background: #fff; color: #b7791f; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tipb .bulb svg { transform-origin: 50% 80%; animation: bulbWiggle 2.6s ease-in-out .4s infinite; }
.tipb .rays { opacity: 0; }
.tipb.on { border-color: #b7dfc4; background: #eaf6ee; color: #14532d; }
.tipb.on b { color: #0f3d21; }
.tipb.on .bulb { background: #ffe58a; color: #8a5a00; }
.tipb.on .bulb svg { animation: none; }
.tipb.on .glass { fill: #fff3b0; }
.tipb.on .rays { opacity: 1; animation: rays 1.2s ease-in-out infinite; }
.tipb.show { animation: tipIn .45s cubic-bezier(.2,.9,.3,1.3) both; }
.tipb.show .bulb { animation: bulbGlow 1.6s ease-out 2; }
@keyframes tipIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bulbWiggle { 0%,80%,100% { transform: rotate(0); } 84% { transform: rotate(-12deg); } 88% { transform: rotate(10deg); } 92% { transform: rotate(-6deg); } 96% { transform: rotate(3deg); } }
@keyframes bulbGlow { from { box-shadow: 0 0 0 0 rgba(255,214,90,.75); } to { box-shadow: 0 0 0 14px rgba(255,214,90,0); } }
@keyframes rays { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* Service description and AI suggestions */
textarea.inp.tall { min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.ai { margin-top: 8px; padding: 10px 12px; border: 1px solid #cfe0fb; border-radius: 12px; background: #f5f9ff; }
.ai-h { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #1d4ed8; font-size: 12.5px; font-weight: 500; }
.ai-list { display: flex; flex-direction: column; gap: 6px; }
.ai-s { padding: 8px 10px; border: 1px solid #dce7f8; border-radius: 9px; background: #fff; color: var(--text); font: inherit; font-size: 13.5px; line-height: 1.4; text-align: left; cursor: pointer; }
.ai-s:hover { border-color: #7aa7f0; color: var(--ink); }
.ai-s.on { border-color: #3b76e0; background: #eaf2ff; color: var(--ink); }
.ai-empty { margin: 0; color: var(--muted); font-size: 13px; }
.ai-list.in .ai-s { animation: aiIn .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 90ms); }
.ai-sk { display: block; height: 36px; border-radius: 9px; background: linear-gradient(90deg,#e3ecfa 0%,#f4f8ff 40%,#e3ecfa 80%); background-size: 200% 100%; animation: aiSh 1s linear infinite; }
.ai-sk:nth-child(2) { width: 86%; }
.ai-sk:nth-child(3) { width: 70%; }
.ai.loading .ai-h svg { animation: aiSpark 1s ease-in-out infinite; }
.ai.loading .ai-h::after { margin-left: 6px; color: var(--muted); font-weight: 400; content: "AI мисли…"; }
textarea.inp.typing { border-color: #3b76e0; box-shadow: 0 0 0 3px #dce8fd; }
@keyframes aiIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes aiSh { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes aiSpark { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.35) rotate(20deg); } }

/* Photos */
.ph-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.photo-desktop-title, .photo-drop-hint { display: none; }
.ph { position: relative; overflow: hidden; border-radius: 14px; background: var(--img); aspect-ratio: 1; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph.is-preparing img { opacity: .72; }
.ph.main { grid-column: span 2; grid-row: span 2; }
.ph .tag { position: absolute; bottom: 8px; left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600; }
.ph-prep { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: rgba(14,17,22,.82); color: #fff; font-size: 11px; font-weight: 600; }
.ph-prep::before { width: 10px; height: 10px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; content: ""; animation: photo-spin .8s linear infinite; }
.ph-preparing-count { color: var(--brand-text); font-weight: 600; }
@keyframes photo-spin { to { transform: rotate(360deg); } }
.ph .act { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.ph .act button { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 1px 4px rgba(0,0,0,.17); cursor: pointer; }
.ph-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: #fcfcfd; color: var(--text); font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; aspect-ratio: 1; }
.ph-add.big { grid-column: 1 / -1; min-height: 190px; border-color: #d9d4c8; background: var(--hero); font-size: 16px; aspect-ratio: auto; }
.ph-add.big small { color: var(--muted); font-size: 13px; font-weight: 400; }
.ph-add .pi { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(14,17,22,.1); }
.ph-add.big .pi { width: 56px; height: 56px; }
.ph-count { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
#next[aria-busy="true"] { cursor: progress; }
.advice { margin-top: 28px; padding: 18px 18px 20px; border-radius: 20px; background: var(--hero); }
.ad-h { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.ad-i { display: flex; width: 36px; height: 36px; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: #fff; }
.advice ul { display: flex; margin: 14px 0 0; padding: 0; flex-direction: column; gap: 10px; list-style: none; }
.advice li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 14.5px; line-height: 1.45; }
.advice li svg { flex: none; margin-top: 3px; }

/* Price and preview */
.market { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--green-soft); color: #14532d; font-size: 14px; }
.market b { font-weight: 600; }
.badge { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--sale); color: #fff; font-size: 13px; font-weight: 700; }
.gen { display: inline-flex; min-height: 38px; align-items: center; align-self: flex-start; gap: 6px; padding: 0 14px; border: 1px solid var(--brand); border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.cnt-row { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12.5px; }
.sub-f { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: end; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.pv { overflow: hidden; margin-top: 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(14,17,22,.06); }
.pimg { position: relative; display: flex; align-items: center; justify-content: center; background: var(--img); color: #9aa1ab; aspect-ratio: 16 / 10; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pimg .n { position: absolute; right: 10px; bottom: 10px; padding: 2px 9px; border-radius: 999px; background: rgba(14,17,22,.75); color: #fff; font-size: 12px; }
.pb { padding: 14px 16px 16px; }
.pt { font-size: 18px; font-weight: 600; line-height: 1.25; }
.pm { margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.pp { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pp b { font-size: 22px; font-weight: 700; }
.pp b.sale { color: var(--sale); }
.pp s { color: var(--muted); font-size: 14px; }
.pp .tg { padding: 2px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12.5px; font-weight: 600; }
.pl { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.missing { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); color: #7a3e00; font-size: 14px; }
.missing button { padding: 0; border: 0; background: transparent; color: var(--brand-text); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.plan { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--hero); color: var(--text); font-size: 14px; }
.plan svg { flex: none; }
.plan b { color: var(--ink); font-weight: 600; }
.legal { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; }

/* Fixed action */
.foot { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -8px 24px rgba(14,17,22,.08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.foot-in { width: min(100%, 600px); margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)); }
.left { display: flex; min-height: 20px; align-items: center; justify-content: center; gap: 6px; margin-bottom: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.left.ok { color: var(--green); font-weight: 500; }
.left.uploading { color: var(--brand-text); font-weight: 600; }
.left.err { color: var(--sale); font-weight: 600; }
.left button { padding: 0; border: 0; background: transparent; color: var(--brand-text); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn { display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 0; border-radius: 999px; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-brand { background: var(--brand); color: var(--ink); }
.btn-brand:hover { background: var(--brand-hover); }
.btn-line { border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.toast { position: fixed; z-index: 80; bottom: calc(142px + env(safe-area-inset-bottom)); left: 50%; width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); transform: translateX(-50%); }

/* Completion */
.fin { display: flex; padding: 40px 8px 20px; flex-direction: column; align-items: center; text-align: center; }
.ok-ic { display: flex; width: 88px; height: 88px; align-items: center; justify-content: center; border-radius: 50%; background: var(--green); animation: okpop .45s cubic-bezier(.2,1.4,.4,1) both; }
.ok-ic path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: okdraw .35s .3s ease-out forwards; }
.fin h1 { margin-top: 22px; }
.fin p { max-width: 390px; margin: 8px auto 0; color: var(--text); }
.fin .acts { display: flex; width: 100%; max-width: 380px; margin-top: 32px; flex-direction: column; gap: 10px; }
.fin-success { min-height: calc(100dvh - 108px); justify-content: center; padding: 32px 16px 56px; }
.fin-success .ok-ic { width: 72px; height: 72px; margin-bottom: 16px; background: var(--green-soft); color: var(--green); }
.fin-success h1 { margin: 0; font-size: 28px; color: var(--ink); }
.fin-success .fin-lead { margin: 6px auto 0; color: var(--muted); }
.fin-listing-card { position: relative; display: flex; width: 100%; max-width: 420px; gap: 12px; align-items: center; margin-top: 28px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: left; box-shadow: 0 8px 24px -16px rgba(14,17,22,.25); }
.fin-listing-icon { display: grid; width: 84px; height: 68px; flex: none; place-items: center; border-radius: 10px; background: #eeeff1; color: #a3a9b2; }
.fin-listing-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.fin-listing-copy b { overflow: hidden; color: var(--ink); font-size: 14.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.fin-listing-copy small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.fin-listing-copy strong { margin-top: 3px; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.fin-pending { display: inline-flex; width: fit-content; margin-bottom: 3px; padding: 2px 8px; border-radius: 999px; background: #eaf0fd; color: #1d4ed8; font-size: 11.5px; font-weight: 500; }
.fin-photo-count { position: absolute; right: 20px; top: 18px; color: var(--muted); font-size: 11px; }
.fin-success .acts { align-items: center; margin-top: 32px; }
.fin-success .btn { min-height: 54px; }
.fin-new-listing { color: var(--ink); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* Publishing screen */
.upload-screen { display: grid; min-height: calc(100dvh - 108px); padding: 28px 16px 56px; place-items: center; }
.upload-box { width: min(100%, 600px); text-align: center; }
.upload-stage { position: relative; width: 200px; height: 112px; margin: 0 auto 27px; }
.upload-item { position: absolute; left: 50%; top: 0; display: grid; width: 90px; height: 90px; margin-left: -45px; place-items: center; border: 1px solid var(--line); border-radius: 25px; background: #fff; color: var(--brand); box-shadow: 0 12px 24px -16px rgba(14,17,22,.28); animation: uploadItemIn .32s cubic-bezier(.2,.9,.3,1.15) both; }
.upload-item svg { width: 36px; height: 36px; }
.upload-name { position: absolute; top: 101px; right: 0; left: 0; color: var(--ink); font-size: 14px; font-weight: 500; }
.upload-screen h1 { margin: 0; color: var(--ink); font-size: 28px; letter-spacing: -.02em; }
.upload-screen .lead { margin: 8px 0 0; color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.upload-progress { margin-top: 37px; text-align: left; }
.upload-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.upload-progress-head span { color: var(--text); font-size: 16px; }
.upload-progress-head b { color: var(--ink); font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1; }
.upload-track { height: 12px; overflow: hidden; border-radius: 999px; background: #eceae5; }
.upload-fill { width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width .25s ease; }
.upload-keep { display: inline-flex; align-items: center; gap: 7px; margin-top: 26px; color: var(--muted); font-size: 15px; }
.upload-error { display: none; margin-top: 20px; padding: 12px 14px; border-radius: 14px; background: #fdecec; color: var(--sale); font-size: 14px; text-align: left; }
.upload-error .btn { margin-top: 10px; }
.upload-screen.failed .upload-error { display: block; }
.upload-screen.failed .upload-fill { background: var(--sale); }
.upload-screen.done .upload-item { color: var(--green); border-color: #cfe6d7; background: var(--green-soft); }
.upload-screen.done .upload-fill { background: var(--green); }
@keyframes uploadItemIn { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes okpop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes okdraw { to { stroke-dashoffset: 0; } }

@media (min-width: 620px) {
  body { background: #f7f7f8; }
  .top-in, main, .foot-in { background: #fff; }
  main { min-height: calc(100dvh - 108px); box-shadow: 0 0 0 1px rgba(14,17,22,.035); }
  .ph-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 440px) {
  .kinds { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kind { min-height: 84px; }
  .chip { padding: 0 13px; }
  .cnt-row { flex-direction: column; gap: 2px; }
}
@media (max-width: 640px) {
  .fin-success { min-height: calc(100dvh - 98px); padding: 24px 16px 48px; }
  .fin-success h1 { font-size: 23px; }
  .upload-screen { min-height: calc(100dvh - 98px); padding: 20px 16px 48px; }
  .upload-screen h1 { font-size: 26px; }
  .upload-screen .lead { font-size: 15px; }
  .upload-progress { margin-top: 34px; }
  .upload-progress-head span { font-size: 15px; }
  .upload-progress-head b { font-size: 27px; }
}

@media (max-width: 359px) {
  .top-in, main, .foot-in { padding-right: 12px; padding-left: 12px; }
  .steps li { font-size: 10px; }
  .kinds { gap: 5px; }
  .kind b { font-size: 12.5px; }
  .grid, .sub-f, .crow { grid-template-columns: minmax(0,1fr); }
  .ph-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ph.main { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
