:root {
  --ink: #18201d;
  --muted: #69736f;
  --line: #dfe5e1;
  --paper: #ffffff;
  --canvas: #f3f5f1;
  --green: #175c45;
  --green-2: #227457;
  --green-soft: #e7f2ec;
  --amber: #9a5b08;
  --amber-soft: #fff4dd;
  --red: #a83b34;
  --red-soft: #fcebea;
  --blue: #285f91;
  --blue-soft: #eaf2fa;
  --shadow: 0 18px 50px rgba(28, 47, 38, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.topbar {
  position: sticky; top: 0; z-index: 20; height: 68px; padding: 0 max(20px, calc((100vw - 1240px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(223,229,225,.9);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand > span:last-child { display: grid; line-height: 1.1; }
.brand strong { font-size: 16px; letter-spacing: -.01em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--green); color: white; font-weight: 850; letter-spacing: -.06em; box-shadow: 0 8px 25px rgba(23,92,69,.24); }
.brand-mark.small { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.page { width: min(1240px, calc(100% - 40px)); margin: 28px auto 72px; display: grid; gap: 22px; }
.panel { background: var(--paper); border: 1px solid rgba(211,220,215,.9); border-radius: var(--radius); box-shadow: var(--shadow); }
.view-tabs { position: sticky; top: 78px; z-index: 15; display: flex; gap: 5px; width: max-content; max-width: 100%; padding: 5px; overflow-x: auto; }
.view-tab { white-space: nowrap; background: transparent; color: var(--muted); }
.view-tab.active { background: var(--green); color: white; }
.ask-card { padding: 28px; background: radial-gradient(circle at 92% 8%, #dceee4 0, transparent 32%), linear-gradient(145deg, #fff 0%, #fbfdfb 100%); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h1, .section-heading h2 { margin: 2px 0 0; letter-spacing: -.035em; line-height: 1.05; }
.section-heading h1 { font-size: clamp(29px, 4vw, 46px); }
.section-heading h2 { font-size: clamp(22px, 3vw, 30px); }
.eyebrow { margin: 0 0 7px; color: var(--green); font-weight: 800; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.safe-note { padding: 8px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 750; white-space: nowrap; }

#ask-input { width: 100%; min-height: 112px; resize: vertical; padding: 18px 20px; border: 1px solid #cbd5cf; border-radius: 15px; color: var(--ink); background: rgba(255,255,255,.9); font-size: 18px; line-height: 1.5; outline: none; transition: border .15s, box-shadow .15s; }
#ask-input:focus, input:focus, select:focus, textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(34,116,87,.12); }
.ask-footer { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; }
.example { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: white; color: #4b5651; font-size: 12px; }
.example:hover { border-color: #9eb7aa; color: var(--green); }

button { border: 0; border-radius: 11px; min-height: 42px; padding: 0 16px; font-weight: 750; }
button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.primary { background: var(--green); color: white; box-shadow: 0 8px 20px rgba(23,92,69,.16); }
.primary:hover { background: var(--green-2); }
.secondary { background: #f0f3f1; color: #34403a; border: 1px solid #d9e0dc; }
.warning { background: var(--amber-soft); color: var(--amber); border: 1px solid #f1d29a; }
.text-btn, .icon-btn { background: transparent; color: var(--muted); }
.text-btn:hover, .icon-btn:hover { color: var(--green); background: #eef4f0; }
.icon-btn { width: 42px; padding: 0; font-size: 21px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 750; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.good { background: var(--green-soft); color: var(--green); }
.status-pill.warn { background: var(--amber-soft); color: var(--amber); }
.status-pill.bad { background: var(--red-soft); color: var(--red); }
.status-pill.neutral { background: #eef1ef; color: #68716d; }

.interpretation { margin-top: 18px; padding: 17px; border: 1px solid #cfe0d7; border-radius: 14px; background: #f5faf7; }
.interpretation h3 { margin: 0 0 5px; font-size: 15px; }
.interpretation p { margin: 4px 0; color: #4f5b55; }
.interpretation-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 9px; margin: 14px 0; }
.interpretation-grid div { padding: 10px; border-radius: 10px; background: white; border: 1px solid #dce8e1; }
.interpretation-grid span { display: block; color: var(--muted); font-size: 11px; }
.interpretation-grid strong { display: block; margin-top: 4px; font-size: 13px; }
.notice-list { margin: 9px 0 0; padding-left: 20px; color: var(--amber); font-size: 13px; }

.plan-panel, .products-panel, .errors-panel, .auction-dashboard { padding: 24px; }
.search-panel, .catalog-panel, .account-panel { min-width: 0; padding: 24px; }
.mode-switch { display: flex; align-items: center; padding: 3px; border-radius: 11px; background: #eef1ef; gap: 3px; }
.mode { padding: 7px 10px; color: #6c7571; border-radius: 8px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.mode.active { background: white; color: var(--green); box-shadow: 0 2px 9px rgba(30,50,40,.1); }
.mode.disabled { opacity: .55; }
.plan-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 32px; margin-bottom: 18px; color: #4e5954; font-size: 14px; }
.plan-summary strong { color: var(--ink); }
.metric-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.metric-grid article { min-width: 0; padding: 15px; border-radius: 13px; background: #f6f8f6; border: 1px solid #e4e9e6; }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); font-size: 11px; }
.metric-grid strong { display: block; margin: 7px 0 5px; font-size: clamp(20px, 2.3vw, 27px); letter-spacing: -.04em; overflow-wrap: anywhere; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.microcopy { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.plan-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
label { display: grid; gap: 6px; color: #46514c; font-size: 12px; font-weight: 700; }
input, select { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid #cfd7d2; border-radius: 10px; background: white; color: var(--ink); outline: none; }
select[multiple] { min-height: 120px; padding: 7px; }
label small { color: var(--muted); font-weight: 500; line-height: 1.45; }
.wide { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.form-error { min-height: 18px; margin: 3px 0 0; color: var(--red); font-size: 12px; }

.products-heading { align-items: flex-end; }
.data-time { display: grid; justify-items: end; gap: 7px; color: var(--muted); font-size: 12px; }
.filters { display: grid; grid-template-columns: 1.4fr 1.2fr 1.25fr 1.15fr .6fr; gap: 10px; padding: 13px; border-radius: 14px; background: #f4f6f4; }
.quality-summary { margin-top: 14px; padding: 15px 16px; border: 1px solid #ead5a4; border-radius: 14px; background: #fffaf0; color: #634c18; }
.quality-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.quality-head > div { display: grid; gap: 4px; }
.quality-head strong { color: var(--ink); font-size: 16px; }
.quality-head span:not(.quality-number) { color: var(--muted); font-size: 12px; }
.quality-number { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 850; }
.quality-number.blocked { background: var(--amber-soft); color: var(--amber); }
.quality-number.ready { background: var(--green-soft); color: var(--green); }
.quality-summary p { margin: 12px 0 5px; font-size: 12px; font-weight: 800; }
.quality-summary ul { margin: 0; padding-left: 20px; font-size: 12px; line-height: 1.55; }
.result-count { margin: 16px 2px 12px; color: var(--muted); font-size: 13px; }
.search-form { display: flex; align-items: end; gap: 10px; padding: 15px; border-radius: 14px; background: #f4f6f4; }
.search-form .grow { flex: 1; }
.search-form input { font-size: 16px; }
.search-filters { grid-template-columns: repeat(4, 1fr); margin-top: 18px; }
.source-title { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.catalog-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.catalog-stats span { padding: 8px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; }
.catalog-editor { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fafcfb; }
.catalog-editor > summary { color: var(--green); font-weight: 850; cursor: pointer; }
.catalog-forms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.compact-form { align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.compact-form h3 { margin: 0 0 3px; }
.compact-form textarea { width: 100%; padding: 10px; border: 1px solid #cfd7d2; border-radius: 10px; resize: vertical; }
.catalog-list { display: grid; gap: 14px; margin-top: 18px; }
.catalog-brand { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.catalog-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.catalog-row h2, .catalog-row h3 { margin: 0; }
.catalog-row h2 { font-size: 20px; }
.catalog-row h3 { font-size: 15px; }
.catalog-row small, .catalog-model small { display: block; margin-top: 4px; color: var(--muted); }
.catalog-line { margin-top: 13px; padding: 13px; border-radius: 12px; background: #f6f8f6; }
.catalog-model { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; padding: 10px 11px; border-radius: 10px; background: white; border: 1px solid #e3e9e5; }
.catalog-model > div:first-child { min-width: 0; }
.catalog-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.safety-banner { display: flex; flex-wrap: wrap; gap: 8px 14px; min-width: 0; padding: 14px 16px; border: 1px solid #ead5a4; border-radius: 13px; background: var(--amber-soft); color: var(--amber); overflow-wrap: anywhere; }
.account-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 15px 0; }
.account-summary > div { display: grid; gap: 3px; padding: 9px 11px; border-radius: 9px; background: #f0f3f1; }
.account-summary span { color: #66736d; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.account-summary strong { color: #24312b; font-size: 13px; overflow-wrap: anywhere; }
.auction-watch-section { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fafcfb; }
.section-heading.compact { margin-bottom: 11px; }
.section-heading.compact h2 { font-size: 18px; }
.auction-watch-list { display: grid; gap: 12px; }
.auction-watch-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.auction-watch-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.auction-watch-head h3 { margin: 0 0 3px; font-size: 17px; }
.auction-watch-head small { color: var(--muted); }
.auction-watch-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 13px 0; }
.auction-watch-facts > div { min-width: 0; display: grid; gap: 3px; padding: 8px 9px; border-radius: 9px; background: #f2f5f3; }
.auction-watch-facts span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.auction-watch-facts strong { overflow-wrap: anywhere; font-size: 12px; }
.auction-watch-history { margin: 4px 0 12px; }
.auction-watch-history summary { color: var(--green); font-size: 12px; font-weight: 800; cursor: pointer; }
.auction-watch-history ol { margin: 8px 0; padding-left: 22px; }
.auction-watch-history li { margin: 5px 0; font-size: 12px; }
.auction-watch-history li small { display: block; color: var(--muted); }
.auction-watch-error { margin: 6px 0 10px; padding: 9px 10px; border-radius: 9px; background: var(--red-soft); color: var(--red); font-size: 12px; overflow-wrap: anywhere; }
.auction-watch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.auction-watch-actions .yahoo-link { margin-top: 0; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.account-grid > section, .account-grid > form { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fafcfb; }
.account-grid h2 { margin: 0 0 12px; font-size: 17px; }
.account-grid ol { margin: 0; padding-left: 21px; color: #4f5a55; font-size: 13px; line-height: 1.65; }
.account-grid textarea { width: 100%; padding: 10px; border: 1px solid #cfd7d2; border-radius: 10px; resize: vertical; font-family: ui-monospace, monospace; font-size: 12px; }
.check-row { display: grid; grid-template-columns: 20px 1fr; align-items: start; }
.check-row input { width: 18px; min-height: 18px; }
.preview-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; min-width: 0; align-items: end; gap: 10px; margin-top: 16px; }
.safe-result { width: 100%; max-width: 100%; min-width: 0; min-height: 80px; margin: 12px 0 0; padding: 13px; overflow: auto; overflow-wrap: anywhere; word-break: break-word; border-radius: 11px; background: #15211c; color: #d9e7df; white-space: pre-wrap; font-size: 11px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.product-card { display: grid; grid-template-columns: 162px 1fr; min-width: 0; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: white; transition: transform .15s, box-shadow .15s, border-color .15s; }
.product-card:hover { transform: translateY(-2px); border-color: #bfd0c7; box-shadow: 0 12px 30px rgba(25,52,39,.08); }
.photo { position: relative; min-height: 188px; background: #ebefec; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-photo { width: 100%; height: 100%; min-height: 188px; display: grid; place-items: center; color: #89928e; font-size: 12px; background: repeating-linear-gradient(135deg,#eef1ef,#eef1ef 10px,#e8ece9 10px,#e8ece9 20px); }
.score { position: absolute; top: 10px; left: 10px; min-width: 70px; padding: 7px 9px; border-radius: 10px; background: rgba(18,27,23,.88); color: white; font-size: 17px; font-weight: 850; backdrop-filter: blur(5px); }
.score small:first-child { display: block; margin-bottom: 1px; opacity: .78; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.score small:last-child { opacity: .7; font-size: 10px; }
.product-body { min-width: 0; padding: 14px; display: flex; flex-direction: column; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.chip { padding: 4px 7px; border-radius: 999px; background: #eef2ef; color: #5c6862; font-size: 10px; font-weight: 800; }
.chip.quality { background: var(--green-soft); color: var(--green); }
.chip.pricing { background: var(--amber-soft); color: var(--amber); }
.chip.ready { background: var(--blue-soft); color: var(--blue); }
.chip.rejected { background: var(--red-soft); color: var(--red); }
.product-title { margin: 0; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-title a { text-decoration: none; }
.product-title a:hover { color: var(--green); text-decoration: underline; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin: 11px 0; }
.price-row strong { font-size: 20px; letter-spacing: -.03em; }
.price-row span { color: var(--muted); font-size: 11px; }
.price-fit { display: grid; gap: 2px; margin: -3px 0 11px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: #f7f9f8; font-size: 11px; }
.price-fit strong { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.price-fit.good { border-color: #b9d8c7; background: var(--green-soft); color: var(--green); }
.price-fit.warn { border-color: #ead5a4; background: var(--amber-soft); color: var(--amber); }
.price-fit.unknown { color: #68736e; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; color: #58635e; font-size: 11px; }
.facts span { min-width: 0; overflow-wrap: anywhere; }
.facts .countdown { color: var(--green); font-weight: 850; }
.yahoo-link { align-self: flex-start; margin-top: 11px; padding: 8px 11px; border-radius: 9px; background: #17241e; color: white; font-size: 11px; font-weight: 850; text-decoration: none; }
.yahoo-link:hover { background: var(--green); color: white; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 11px; }
.product-actions .yahoo-link { margin-top: 0; }
.bid-button { min-height: 36px; padding: 0 12px; background: var(--green); color: white; font-size: 11px; }
.bid-button:hover { background: var(--green-2); }
.product-details { margin-top: auto; padding-top: 11px; }
.product-details summary { color: var(--green); font-size: 12px; font-weight: 800; cursor: pointer; }
.evidence { margin-top: 9px; padding: 10px; max-height: 235px; overflow: auto; border-radius: 10px; background: #f6f8f6; color: #4e5954; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.evidence h4 { margin: 8px 0 3px; color: var(--ink); font-size: 11px; }
.evidence ul { margin: 3px 0 8px; padding-left: 17px; }
.empty { grid-column: 1 / -1; padding: 44px 20px; text-align: center; border: 1px dashed #cdd7d1; border-radius: 14px; color: var(--muted); }
.error-row { padding: 11px 0; border-top: 1px solid var(--line); }
.error-row:first-child { border-top: 0; }
.error-row strong { color: var(--amber); font-size: 12px; }
.error-row p { margin: 4px 0; font-size: 13px; }
.error-row time { color: var(--muted); font-size: 11px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 40; max-width: min(390px, calc(100vw - 40px)); padding: 13px 16px; border-radius: 12px; background: #17241e; color: white; box-shadow: 0 16px 50px rgba(0,0,0,.25); font-size: 13px; }
.bid-dialog { width: min(650px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; overflow: auto; border: 0; border-radius: 18px; box-shadow: 0 30px 90px rgba(10,25,18,.35); }
.bid-dialog::backdrop { background: rgba(10,22,16,.58); backdrop-filter: blur(3px); }
.bid-dialog form { display: grid; gap: 15px; padding: 22px; }
.bid-dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.bid-dialog-head h2 { margin: 2px 0 0; font-size: 23px; }
.bid-product { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 14px; align-items: start; }
.bid-product > div:last-child { min-width: 0; }
.bid-product strong, .bid-product small { display: block; overflow-wrap: anywhere; }
.bid-product small { margin-top: 5px; color: var(--muted); }
.bid-photo { width: 126px; height: 112px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #edf1ee; color: var(--muted); font-size: 11px; }
.bid-photo img { width: 100%; height: 100%; object-fit: cover; }
.bid-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin: 12px 0 0; }
.bid-facts div { min-width: 0; padding: 7px 8px; border-radius: 8px; background: #f1f4f2; }
.bid-facts dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.bid-facts dd { margin: 3px 0 0; font-size: 11px; font-weight: 800; overflow-wrap: anywhere; }
.strategy-box, .bid-preflight { display: grid; gap: 5px; padding: 12px 13px; border-radius: 11px; border: 1px solid var(--line); background: #f7f9f8; font-size: 12px; line-height: 1.5; }
.strategy-box strong { color: var(--green); }
.bid-preflight.good { border-color: #b9d8c7; background: var(--green-soft); color: var(--green); }
.bid-preflight.warn { border-color: #ead5a4; background: var(--amber-soft); color: var(--amber); }
.bid-preflight.bad { border-color: #ecc5c0; background: var(--red-soft); color: var(--red); }
.label-unit { color: var(--muted); font-weight: 500; }
.t10-confirm { padding: 11px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); }
.skeleton-block { background: linear-gradient(90deg,#f1f3f2 25%,#e7ebe8 37%,#f1f3f2 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 9px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 15% 15%, #dcece2, transparent 32%), radial-gradient(circle at 90% 85%, #e9dfca, transparent 30%), var(--canvas); }
.login-card { width: min(430px, 100%); padding: 34px; border-radius: 22px; background: white; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(30,54,43,.15); }
.login-card h1 { margin: 22px 0 8px; font-size: 30px; letter-spacing: -.04em; }
.muted { color: var(--muted); line-height: 1.5; }
.stack { display: grid; gap: 14px; margin-top: 23px; }

@media (max-width: 1020px) {
  .auction-watch-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .interpretation-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-forms { grid-template-columns: 1fr; }
  .search-filters { grid-template-columns: repeat(2, 1fr); }
  .account-grid { grid-template-columns: 1fr; }
  .bid-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .auction-watch-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auction-watch-head { align-items: stretch; flex-direction: column; }
  .account-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { height: 62px; padding: 0 14px; }
  .brand small, #bot-pill { display: none; }
  .top-actions { gap: 2px; }
  .page { width: min(100% - 20px, 1240px); margin-top: 12px; gap: 12px; }
  .view-tabs { top: 69px; width: 100%; }
  .panel, .ask-card, .plan-panel, .products-panel, .errors-panel { border-radius: 14px; padding: 16px; }
  .section-heading { display: grid; margin-bottom: 15px; }
  .safe-note { width: max-content; }
  #ask-input { min-height: 104px; padding: 14px; font-size: 16px; }
  .ask-footer { align-items: stretch; flex-direction: column; }
  .ask-footer .primary { width: 100%; }
  .examples { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .example { flex: 0 0 auto; }
  .mode-switch { max-width: 100%; overflow-x: auto; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid article { padding: 12px; }
  .plan-actions { display: grid; grid-template-columns: 1fr; }
  .plan-form, .filters { grid-template-columns: 1fr; }
  .search-form { align-items: stretch; flex-direction: column; }
  .search-form button { width: 100%; }
  .wide { grid-column: auto; }
  .products-heading { align-items: start; }
  .data-time { justify-items: start; }
  .product-card { grid-template-columns: 112px 1fr; }
  .photo, .no-photo { min-height: 184px; }
  .facts { grid-template-columns: 1fr; }
  .interpretation-grid { grid-template-columns: 1fr 1fr; }
  .login-card { padding: 25px; }
  .catalog-model { align-items: flex-start; flex-direction: column; }
  .preview-form { grid-template-columns: 1fr; }
  .preview-form button { width: 100%; white-space: normal; }
  .bid-dialog form { padding: 17px; }
  .bid-product { grid-template-columns: 94px minmax(0, 1fr); }
  .bid-photo { width: 94px; height: 94px; }
}

@media (max-width: 430px) {
  .product-card { grid-template-columns: 1fr; }
  .photo, .no-photo { min-height: 215px; max-height: 280px; }
  .interpretation-grid { grid-template-columns: 1fr; }
  .bid-product { grid-template-columns: 1fr; }
  .bid-photo { width: 100%; height: 180px; }
  .bid-facts { grid-template-columns: 1fr; }
}

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