:root {
  --ink: #151713;
  --muted: #6f746c;
  --paper: #f3f0e8;
  --panel: #fbfaf6;
  --line: #d9d6cc;
  --acid: #d8ff57;
  --orange: #ff6b3d;
  --sage: #2c4b3c;
  --shadow: 0 24px 80px rgba(27, 31, 24, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 0%, rgba(216, 255, 87, 0.16), transparent 26rem),
    var(--paper);
  font-family: "Trebuchet MS", Arial, sans-serif;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.app-shell { min-height: 100vh; }
.topbar {
  height: 76px;
  max-width: 1240px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(21, 23, 19, 0.12);
}
.brand { display: flex; gap: 11px; align-items: center; color: inherit; text-decoration: none; font-family: "Arial Black", Arial, sans-serif; font-weight: 600; }
.brand-mark { position: relative; width: 29px; height: 29px; border-radius: 50%; background: var(--ink); }
.brand-mark::before, .brand-mark i { content: ""; position: absolute; border-radius: 50%; inset: 7px; border: 1px solid var(--paper); }
.brand-mark i { inset: 12px; background: var(--acid); border: 0; }
.topbar-note { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #68a873; box-shadow: 0 0 0 4px rgba(104,168,115,.14); }
.collection-link { padding: 7px 10px; border: 1px solid var(--line); background: transparent; color: var(--sage); font-size: 10px; font-weight: 700; cursor: pointer; }
.collection-link b { display: inline-grid; min-width: 18px; min-height: 18px; place-items: center; margin-left: 5px; border-radius: 50%; background: var(--acid); color: var(--ink); }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.auth-login, .auth-logout { padding: 7px 9px; border: 0; background: transparent; color: var(--sage); font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-login { border: 1px solid var(--line); text-decoration: none; }
.auth-user { max-width: 130px; overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

main { max-width: 1240px; margin: auto; padding: 0 28px 60px; }
.screen { display: none; animation: reveal .45s ease both; }
.screen.is-active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
.eyebrow { display: inline-block; margin-bottom: 18px; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--sage); }
h1 { margin: 0; font-family: "Arial Black", Arial, sans-serif; font-weight: 500; letter-spacing: -.05em; line-height: 1.05; }
p { color: var(--muted); line-height: 1.65; }

.hero-grid { min-height: 610px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 7vw; align-items: center; }
.hero-copy h1 { font-size: clamp(46px, 6.2vw, 84px); }
.hero-lead { max-width: 580px; margin: 28px 0 30px; font-size: 17px; }
.trust-row { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; font-weight: 600; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row span::before { content: "✓"; color: var(--sage); }
.panel { background: var(--panel); border: 1px solid rgba(21,23,19,.09); box-shadow: var(--shadow); }
.upload-panel { padding: 14px; transform: rotate(1deg); }
.dropzone { min-height: 402px; padding: 44px 28px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px dashed #b7b9ae; text-align: center; cursor: pointer; transition: .2s; }
.dropzone:hover, .dropzone.is-dragging { background: #f5f6ed; border-color: var(--sage); transform: scale(.995); }
.dropzone h2 { margin: 22px 0 3px; font: 600 22px "Arial Black", Arial, sans-serif; letter-spacing: -.03em; }
.dropzone p { margin: 0 0 24px; font-size: 13px; }
.dropzone small { margin-top: 15px; color: #92968d; font-size: 10px; }
.upload-choice { display: flex; align-items: center; justify-content: center; gap: 16px; }
.save-cover { max-width: 330px; margin-top: 13px; color: var(--muted); font-size: 10px; line-height: 1.4; text-align: left; }
.save-cover input { accent-color: var(--sage); }
.record-icon { width: 76px; height: 76px; border-radius: 50%; position: relative; background: repeating-radial-gradient(circle, #20231f 0 4px, #353832 5px 6px); box-shadow: 10px 12px 0 var(--acid); }
.record-icon span, .scan-record span { position: absolute; width: 20px; height: 20px; border-radius: 50%; inset: 0; margin: auto; background: var(--orange); border: 6px solid #f4b29f; }
.button { border: 0; min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; font-weight: 700; font-size: 13px; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21,23,19,.14); }
.button-dark { color: white; background: var(--ink); }
.button-accent { background: var(--acid); color: var(--ink); }
.button.wide { width: 100%; margin-top: 26px; }
.upload-actions { display: flex; padding: 16px 12px 3px; justify-content: center; gap: 8px; font-size: 11px; color: var(--muted); }
.batch-start { display: block; margin: 14px auto 0; color: var(--sage); font-size: 11px; }
.batch-panel { margin-top: 14px; padding: 13px; display: grid; gap: 7px; border: 1px solid var(--line); background: #e7e4da; font-size: 10px; }
.batch-panel > span { color: var(--muted); }
.batch-panel > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.batch-panel .button { min-height: 36px; padding: 0 14px; font-size: 10px; }
.text-button, .back-button, .sort-button { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; cursor: pointer; font-weight: 700; }
.how-it-works { padding: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.how-it-works article { padding: 0 6vw 0 0; display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; }
.how-it-works b { grid-row: 1 / 3; color: var(--orange); font: 500 11px "Arial Black", Arial, sans-serif; }
.how-it-works h3 { margin: 0; font-size: 13px; }
.how-it-works p { margin: 4px 0 0; font-size: 11px; }
.photo-guide { max-width: 560px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.photo-guide summary, .faq summary { color: var(--sage); cursor: pointer; font-weight: 700; }
.photo-guide p { margin: 9px 0 0; font-size: 11px; }
.onboarding-link { margin-top: 15px; color: var(--sage); font-size: 11px; }
.has-onboarding { overflow: hidden; }
.onboarding { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(21, 23, 19, .56); }
.onboarding[hidden] { display: none; }
.onboarding-card { width: min(560px, 100%); padding: 34px; background: var(--panel); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.onboarding-card .eyebrow { margin-bottom: 12px; }
.onboarding-card h2 { margin: 0; font: 500 clamp(31px, 6vw, 48px) "Arial Black", Arial, sans-serif; letter-spacing: -.05em; line-height: 1.05; }
.onboarding-card > p { margin: 16px 0 0; font-size: 13px; }
.onboarding-steps { margin: 25px 0 0; padding: 0; display: grid; gap: 1px; list-style: none; background: var(--line); }
.onboarding-steps li { padding: 13px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; background: var(--panel); }
.onboarding-steps b { color: var(--orange); font: 500 15px "Arial Black", Arial, sans-serif; }
.onboarding-steps span { display: grid; gap: 3px; }
.onboarding-steps strong { font-size: 12px; }
.onboarding-steps small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.onboarding-card .onboarding-note { margin: 16px 0 20px; font-size: 10px; line-height: 1.45; }
.faq { margin-top: 52px; padding: 30px 0; border-top: 1px solid var(--line); }
.faq h2 { margin: 0 0 18px; font: 500 30px "Arial Black", Arial, sans-serif; letter-spacing: -.04em; }
.faq details { padding: 15px 0; border-top: 1px solid var(--line); }
.faq p { max-width: 680px; margin: 8px 0 0; font-size: 12px; }

.centered-state { min-height: calc(100vh - 136px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.centered-state h1 { margin-top: 4px; font-size: clamp(34px, 5vw, 58px); }
.centered-state p { margin: 16px 0 30px; }
.scan-record { width: 138px; height: 138px; position: relative; margin-bottom: 40px; border-radius: 50%; overflow: hidden; background: repeating-radial-gradient(circle, #1f211e 0 6px, #30342e 7px 9px); box-shadow: 25px 25px 0 var(--acid); animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-record span { width: 34px; height: 34px; border: 10px solid #e4a493; }
.scan-line { position: absolute; z-index: 2; left: -10%; right: -10%; height: 2px; top: 20%; background: var(--acid); box-shadow: 0 0 15px var(--acid); animation: scan 1.4s ease-in-out infinite alternate; }
@keyframes scan { to { top: 80%; } }
.progress-track { width: min(380px, 80vw); height: 4px; background: #d7d6cd; }
.progress-track i { display: block; width: 0; height: 100%; background: var(--orange); transition: width .5s; }
.centered-state strong { margin-top: 12px; font-size: 11px; }

.workspace-head { padding: 64px 0 32px; display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--line); }
.workspace-head h1 { font-size: clamp(38px, 5vw, 62px); }
.workspace-head p { margin: 12px 0 0; }
.progress-pill { width: 118px; height: 72px; padding: 12px 15px; display: flex; align-items: center; gap: 10px; background: var(--ink); color: white; }
.progress-pill b { color: var(--acid); font: 500 30px "Arial Black", Arial, sans-serif; }
.progress-pill span { font-size: 10px; color: #b8bbb3; line-height: 1.35; }
.review-list { padding-bottom: 110px; }
.review-card { padding: 22px 0; display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); }
.album-cover { position: relative; aspect-ratio: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; color: white; box-shadow: 0 8px 20px rgba(20,22,18,.14); }
.scan-cover { display: block; width: 100%; height: auto; padding: 0; object-fit: cover; background: #e7e4da; }
.album-cover::after { content: ""; width: 38%; aspect-ratio: 1; position: absolute; border-radius: 50%; right: -12%; bottom: -10%; background: repeating-radial-gradient(circle, #171916 0 4px, #33362f 5px 6px); }
.album-cover span { position: relative; z-index: 1; font: 600 13px "Arial Black", Arial, sans-serif; }
.album-cover small { position: relative; z-index: 1; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.cover-kino { background: linear-gradient(145deg, #1f4d3d 0 45%, #e94f2c 46% 63%, #e5d8b5 64%); }
.cover-floyd { background: linear-gradient(135deg, #121311 0 50%, #f5f2e9 51%); }
.cover-floyd::before { content: ""; position: absolute; width: 56%; height: 2px; background: linear-gradient(90deg, #f33,#ff0,#4f4,#49f); transform: rotate(-22deg); left: 34%; top: 53%; }
.cover-mashina { background: linear-gradient(30deg, #bd3c2f, #e3a64f); }
.cover-mashina::before { content: ""; position: absolute; width: 70%; height: 70%; border: 1px solid rgba(255,255,255,.55); transform: rotate(45deg); left: -30%; top: 14%; }
.cover-generic { background: linear-gradient(145deg, #293c35 0 48%, #91a083 49% 64%, #ded6bd 65%); }
.cover-generic::before { content: ""; position: absolute; width: 55%; height: 55%; left: 12%; top: 20%; border: 1px solid rgba(255,255,255,.4); transform: rotate(12deg); }
.review-info h2 { margin: 0 0 5px; font: 500 17px "Arial Black", Arial, sans-serif; letter-spacing: -.03em; }
.release-meta { margin: 0 0 13px; font-size: 12px; }
.confidence { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; color: var(--sage); }
.confidence i { width: 7px; height: 7px; border-radius: 50%; background: #66a778; }
.confidence.low { color: #a44c31; }
.confidence.low i { background: var(--orange); }
.review-status { min-width: 142px; text-align: right; }
.status-label { display: block; margin-bottom: 8px; font-size: 10px; color: var(--muted); }
.review-link { border: 0; background: none; color: var(--sage); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-weight: 700; font-size: 11px; }
.sticky-action { position: fixed; z-index: 5; left: 50%; bottom: 22px; width: min(calc(100% - 56px), 1184px); transform: translateX(-50%); padding: 14px 14px 14px 22px; display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: white; box-shadow: 0 18px 50px rgba(20,22,18,.25); }
.sticky-action div { display: flex; flex-direction: column; gap: 3px; }
.sticky-action b { font-size: 12px; }
.sticky-action div span { color: #a9ada4; font-size: 10px; }

.back-button { margin: 32px 0 34px; border: 0; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8vw; align-items: start; }
.detail-cover-wrap { position: sticky; top: 30px; }
.large-cover { width: min(100%, 410px); padding: 25px; }
.album-cover.scan-cover.large-cover { padding: 0; }
.large-cover span { font-size: 27px; }
.large-cover small { font-size: 12px; }
.detail-cover-wrap .confidence { margin-top: 22px; }
.detail-cover-wrap p { max-width: 390px; font-size: 12px; }
.back-photo { margin: 20px 0 0; }
.back-photo img { width: min(100%, 410px); display: block; border: 1px solid var(--line); }
.back-photo figcaption { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.detail-content { padding-bottom: 60px; }
.detail-content h1 { font-size: clamp(34px, 4.5vw, 58px); }
.section-lead { margin: 15px 0 28px; font-size: 14px; }
.catalog-search { margin-bottom: 14px; }
.catalog-search > label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.catalog-search > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.catalog-search input { width: 100%; min-width: 0; padding: 0 14px; border: 1px solid var(--line); background: var(--panel); font: inherit; }
.catalog-search input:focus { outline: 2px solid var(--acid); outline-offset: 1px; }
.catalog-search p { min-height: 16px; margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.catalog-search p.is-error { color: #9b352c; }
.candidate-list { display: grid; gap: 9px; }
.candidate { min-height: 75px; padding: 14px 17px; display: grid; grid-template-columns: 18px 1fr auto; gap: 15px; align-items: center; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: .18s; }
.candidate:hover, .candidate.is-selected { border-color: var(--sage); box-shadow: inset 4px 0 var(--acid); }
.candidate input { position: absolute; opacity: 0; }
.candidate-main { display: contents; cursor: pointer; }
.radio-dot { width: 15px; height: 15px; border: 1px solid #898d84; border-radius: 50%; }
.candidate.is-selected .radio-dot { border: 4px solid var(--sage); background: var(--acid); }
.candidate span:nth-of-type(2) { display: flex; flex-direction: column; gap: 4px; }
.candidate b { font-size: 12px; }
.candidate small { color: var(--muted); font-size: 10px; }
.candidate em { padding: 5px 7px; background: #ebe9e0; font-style: normal; font-size: 10px; text-transform: uppercase; }
.candidate a { color: var(--sage); font-size: 10px; font-weight: 700; }
.candidate-empty { padding: 20px; border: 1px dashed var(--line); color: var(--muted); font-size: 11px; text-align: center; }
.catalog-attribution { margin: 9px 0 16px; color: var(--muted); font-size: 10px; }
.catalog-attribution a { color: inherit; }
.discogs-notice { margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.button:disabled { cursor: not-allowed; opacity: .45; }
.photo-hint { width: 100%; margin: 12px 0 30px; padding: 14px 18px; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; border: 1px dashed #acafa6; background: transparent; text-align: left; cursor: pointer; }
.photo-hint span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.photo-hint b { font-size: 11px; }
.photo-hint small { color: var(--muted); font-size: 10px; }
.camera-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #e5e5dc; }
.condition-block { padding-top: 24px; border-top: 1px solid var(--line); }
.condition-block h2 { margin: 0; font: 500 18px "Arial Black", Arial, sans-serif; }
.condition-block p { margin: 5px 0 17px; font-size: 10px; }
.select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.select-grid label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.select-grid select { width: 100%; height: 44px; margin-top: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--ink); }

.report-hero { margin: 46px 0 54px; padding: 55px; display: grid; grid-template-columns: 1fr .75fr; gap: 6vw; align-items: center; background: var(--sage); color: white; }
.report-hero.is-single-result { grid-template-columns: 1fr; }
.report-hero .eyebrow { color: var(--acid); }
.report-hero h1 { font-size: clamp(38px, 5vw, 66px); }
.report-hero p { max-width: 590px; color: #bbc9c1; font-size: 13px; }
.demo-notice { margin-top: 16px !important; color: var(--acid) !important; font-weight: 700; }
.total-card { padding: 32px; background: var(--acid); color: var(--ink); box-shadow: 18px 18px 0 rgba(0,0,0,.16); transform: rotate(1deg); }
.total-card > span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.total-card > strong { display: block; margin: 10px 0 24px; font: 500 clamp(25px, 3.2vw, 40px) "Arial Black", Arial, sans-serif; letter-spacing: -.06em; white-space: nowrap; }
.total-card div { padding-top: 16px; display: flex; justify-content: space-between; border-top: 1px solid rgba(21,23,19,.25); font-size: 10px; }
.report-toolbar { display: flex; justify-content: space-between; align-items: center; }
.report-toolbar h2 { font: 500 24px "Arial Black", Arial, sans-serif; }
.report-toolbar h2 span { color: var(--muted); }
.sort-button { border: 0; font-size: 10px; }
.report-item { padding: 18px 0; display: grid; grid-template-columns: 78px minmax(180px,1fr) .8fr .8fr auto; gap: 22px; align-items: center; border-top: 1px solid var(--line); }
.report-item .album-cover { padding: 8px; }
.report-item .album-cover span { font-size: 10px; }
.report-title b { display: block; font: 500 13px "Arial Black", Arial, sans-serif; }
.report-title span, .price-block span, .analogs span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.marketplace-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 9px; }
.marketplace-links span { margin: 0; color: var(--muted); font-size: 10px; }
.marketplace-links a { color: var(--sage); font-size: 10px; font-weight: 700; text-underline-offset: 3px; }
.listing-button { margin-top: 10px; color: var(--sage); font-size: 10px; }
.russian-pages { grid-column: 2 / -1; padding: 14px 0 4px; border-top: 1px dashed var(--line); }
.russian-pages > b { display: block; margin-bottom: 9px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.russian-pages > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.russian-pages a { min-width: 0; padding: 9px 11px; display: flex; justify-content: space-between; gap: 12px; color: var(--ink); background: #e7e4da; text-decoration: none; }
.russian-pages .russian-primary { margin-bottom: 8px; padding: 13px; background: var(--acid); }
.russian-pages .russian-primary small { display: block; margin-top: 4px; color: var(--sage); font-size: 10px; }
.russian-pages p { margin: 0 0 8px; color: var(--muted); font-size: 10px; }
.russian-pages a span { min-width: 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.russian-pages a strong { margin-right: 6px; color: var(--sage); font-size: 10px; text-transform: uppercase; }
.russian-pages a em { flex: 0 0 auto; font-style: normal; font-size: 10px; font-weight: 700; }
.russian-pages > small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.marketplace-status { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 7px; }
.marketplace-status-item { padding: 6px 8px; display: inline-flex; align-items: baseline; gap: 5px; background: #eeece5; }
.marketplace-status-item b { color: var(--sage); font-size: 10px; }
.marketplace-status-item small { color: var(--muted); font-size: 10px; }
.price-block b { font-size: 13px; }
.russian-price b { color: var(--sage); font-size: 16px; }
.price-confidence { font-weight: 700; }
.price-confidence.is-high { color: #247249; }
.price-confidence.is-medium { color: #8a6700; }
.price-confidence.is-low { color: #9b352c; }
.analogs b { font-size: 11px; }
.value-badge { padding: 6px 8px; background: var(--acid); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.report-footer { margin-top: 22px; padding: 22px; display: flex; justify-content: space-between; align-items: center; background: #e7e4da; }
.report-footer > div { display: flex; align-items: center; gap: 14px; }
.report-footer p { margin: 0; font-size: 10px; }
.helpfulness { margin-top: 18px; padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; border: 1px solid var(--line); background: #e7e4da; }
.helpfulness h2 { margin: 5px 0; font: 500 18px "Arial Black", Arial, sans-serif; letter-spacing: -.03em; }
.helpfulness p { margin: 0; color: var(--muted); font-size: 10px; }
.helpfulness-actions { display: flex; align-items: center; gap: 7px; }
.helpfulness-actions button { min-width: 62px; min-height: 34px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: 700 10px Arial, sans-serif; cursor: pointer; }
.helpfulness-actions button:first-child { background: var(--ink); color: white; }
.helpfulness > p { grid-column: 1 / -1; }
.collection-head { margin-bottom: 24px; }
.collection-list { display: grid; gap: 10px; }
.collection-item { min-height: 112px; padding: 14px 0; display: grid; grid-template-columns: 82px 1fr auto; gap: 16px; align-items: center; border-top: 1px solid var(--line); }
.collection-cover { width: 82px; aspect-ratio: 1; object-fit: cover; }
.collection-item > div:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.collection-item b { font: 500 14px "Arial Black", Arial, sans-serif; letter-spacing: -.03em; }
.collection-item span, .collection-item small { color: var(--muted); font-size: 10px; }
.collection-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 10px; }
.collection-empty { padding: 50px 22px; text-align: center; background: #e7e4da; }
.collection-empty b { font: 500 22px "Arial Black", Arial, sans-serif; }
.collection-empty p { margin: 8px auto 20px; max-width: 370px; font-size: 12px; }
.record-mini { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; background: repeating-radial-gradient(circle, #20231f 0 3px, #4b4e47 4px 5px); }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 24px; padding: 12px 18px; background: var(--ink); color: white; font-size: 11px; transform: translate(-50%, 120px); opacity: 0; transition: .25s; box-shadow: var(--shadow); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.has-paywall { overflow: hidden; }
.paywall { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(21, 23, 19, .72); }
.paywall[hidden] { display: none; }
.paywall-card { position: relative; width: min(720px, 100%); padding: 36px; background: var(--paper); box-shadow: 18px 18px 0 rgba(0, 0, 0, .3); }
.paywall-card h2 { margin: 9px 0; font: 500 clamp(30px, 4vw, 47px) "Arial Black", Arial, sans-serif; letter-spacing: -.06em; }
.paywall-card > p { max-width: 510px; margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.checkout-contact summary { cursor: pointer; color: var(--muted); font-size: 11px; }
.checkout-contact label { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; }
.checkout-contact input { width: 100%; min-height: 40px; margin-top: 5px; padding: 0 10px; border: 1px solid var(--line); background: var(--panel); }
.payment-steps { margin: 16px 0; padding-left: 20px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.paywall-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: var(--muted); font-size: 27px; line-height: 1; }
.checkout-contact { display: grid; gap: 6px; margin: 0 0 16px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.checkout-contact small { font-weight: 400; letter-spacing: 0; text-transform: none; }
.checkout-contact input { min-height: 40px; padding: 0 11px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 400 13px Arial, sans-serif; }
.tariff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tariff-grid article { padding: 18px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); cursor: pointer; }
.tariff-grid article:hover { border-color: var(--ink); }
.tariff-grid article.is-featured { background: var(--acid); border-color: var(--acid); }
.tariff-grid span, .tariff-grid small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.tariff-grid b { margin: 12px 0 7px; font: 500 27px "Arial Black", Arial, sans-serif; letter-spacing: -.06em; }
.tariff-grid button { width: 100%; margin-top: 18px; min-height: 35px; border: 0; background: var(--ink); color: white; font-size: 10px; font-weight: 700; }
.transfer-details { margin-top: 18px; padding: 17px; background: #e7e4da; }
.transfer-details > b { font-size: 11px; }
.transfer-details p { margin: 7px 0; color: var(--muted); font-size: 10px; }
.payment-phone { width: 100%; padding: 12px; border: 1px dashed var(--sage); background: var(--paper); color: var(--ink); font: 500 22px "Arial Black", Arial, sans-serif; letter-spacing: -.04em; text-align: left; }
.payment-phone small { float: right; margin-top: 7px; color: var(--sage); font: 700 10px Arial, sans-serif; text-transform: uppercase; letter-spacing: .07em; }
.transfer-help { line-height: 1.45; }
.transfer-actions { display: flex; align-items: center; gap: 15px; margin-top: 13px; }
.transfer-actions .button { min-height: 38px; padding: 0 13px; font-size: 10px; text-decoration: none; }
.paywall-note { display: block; margin-top: 16px; color: var(--muted); font-size: 10px; }
.site-footer { max-width: 1240px; margin: 0 auto; padding: 0 28px 28px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 10px; }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer a, .document-page a { color: var(--sage); text-underline-offset: 3px; }
.footer-button { padding: 0; border: 0; background: none; color: var(--sage); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.document-page { width: min(760px, calc(100% - 36px)); margin: 0 auto; padding: 42px 0 72px; }
.document-page .brand { width: max-content; margin-bottom: 58px; }
.document-page h1 { font-size: clamp(38px, 7vw, 64px); }
.document-page h2 { margin-top: 36px; font: 500 20px "Arial Black", Arial, sans-serif; letter-spacing: -.03em; }
.document-page p { max-width: 680px; font-size: 15px; }
.document-page .document-lead { margin-top: 10px; font-size: 12px; }
.operator-form { display: grid; gap: 18px; max-width: 540px; margin-top: 32px; }
.operator-form label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.operator-form input { min-height: 46px; padding: 0 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.operator-form .button { justify-self: start; }
.operator-dashboard { margin-top: 54px; padding-top: 34px; border-top: 1px solid var(--line); }
.operator-dashboard h2 { margin: 0; font: 500 26px "Arial Black", Arial, sans-serif; letter-spacing: -.04em; }
.operator-dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.operator-dashboard-head .eyebrow { margin-bottom: 8px; }
.dashboard-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 22px 0; }
.dashboard-cards article { min-height: 88px; padding: 13px; display: flex; flex-direction: column; justify-content: space-between; background: #e7e4da; }
.dashboard-cards b { font: 500 27px "Arial Black", Arial, sans-serif; letter-spacing: -.05em; }
.dashboard-cards span { color: var(--muted); font-size: 10px; line-height: 1.25; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dashboard-grid section { min-width: 0; }
.dashboard-grid .dashboard-wide { grid-column: 1 / -1; }
.dashboard-grid h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.dashboard-list li { padding: 9px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); font-size: 11px; }
.dashboard-list li > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dashboard-list small { color: var(--muted); font-size: 10px; }
.dashboard-list em { align-self: start; padding: 3px 5px; background: #e7e4da; font-size: 10px; font-style: normal; text-transform: uppercase; }
.dashboard-list q { color: var(--ink); font-size: 10px; line-height: 1.4; }
.dashboard-empty { margin: 0; font-size: 11px; }
.feedback-card { width: min(580px, 100%); }
.feedback-form { display: grid; gap: 9px; }
.feedback-form label { margin-top: 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.feedback-form textarea, .feedback-form input { width: 100%; padding: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.feedback-form textarea { min-height: 120px; resize: vertical; }
.feedback-form .button { justify-self: start; margin-top: 10px; }
.listing-form { display: grid; gap: 12px; }
.listing-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.listing-form input, .listing-form select, .listing-form textarea { width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--ink); font: inherit; }
.listing-form textarea { min-height: 150px; resize: vertical; }
.feedback-status { min-height: 22px; margin-bottom: 0; font-size: 11px; }

@media (max-width: 800px) {
  .topbar { height: 64px; padding: 0 18px; }
  main { padding: 0 18px 40px; }
  .hero-grid { min-height: auto; padding: 54px 0 34px; grid-template-columns: 1fr; gap: 38px; }
  .hero-copy h1 { font-size: clamp(39px, 12vw, 61px); }
  .upload-panel { transform: none; }
  .dropzone { min-height: 335px; }
  .how-it-works { gap: 20px; overflow-x: auto; grid-template-columns: repeat(3, minmax(190px, 1fr)); }
  .workspace-head { padding-top: 44px; align-items: start; }
  .workspace-head p { max-width: 75%; font-size: 12px; }
  .progress-pill { width: 72px; height: 60px; }
  .progress-pill span { display: none; }
  .review-card { grid-template-columns: 78px 1fr; gap: 15px; }
  .review-status { grid-column: 2; text-align: left; margin-top: -10px; }
  .sticky-action { width: calc(100% - 24px); bottom: 12px; padding: 10px 10px 10px 14px; }
  .sticky-action div span { display: none; }
  .sticky-action .button { min-height: 42px; padding: 0 14px; }
  .detail-grid { grid-template-columns: 1fr; gap: 35px; }
  .detail-cover-wrap { position: static; display: grid; grid-template-columns: 42% 1fr; gap: 18px; align-items: start; }
  .detail-cover-wrap .confidence { margin-top: 4px; }
  .detail-cover-wrap p { grid-column: 2; margin-top: -55%; font-size: 10px; }
  .back-photo { grid-column: 1 / -1; }
  .report-hero { padding: 32px 24px 40px; grid-template-columns: 1fr; }
  .total-card { transform: none; }
  .report-item { grid-template-columns: 62px 1fr auto; gap: 13px; }
  .report-item .price-block { grid-column: 2; }
  .report-item .analogs { grid-column: 3; grid-row: 2; }
  .russian-pages { grid-column: 2 / -1; }
  .russian-pages > div { grid-template-columns: 1fr; }
  .collection-item { grid-template-columns: 70px 1fr; gap: 13px; }
  .collection-cover { width: 70px; }
  .collection-actions { grid-column: 2; align-items: flex-start; flex-direction: row; }
  .value-badge { grid-column: 3; grid-row: 1; }
  .report-footer { align-items: stretch; gap: 18px; flex-direction: column; }
  .tariff-grid { grid-template-columns: 1fr; }
  .transfer-actions { align-items: stretch; flex-direction: column; }
  .site-footer { padding: 0 18px 24px; align-items: flex-start; flex-direction: column; }
  .operator-dashboard-head { align-items: flex-start; flex-direction: column; }
  .dashboard-cards { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .collection-link { padding: 6px 7px; font-size: 10px; }
  .topbar-actions { gap: 5px; }
  .auth-login, .auth-logout { padding: 6px 5px; font-size: 10px; }
  .auth-user { display: none; }
  .trust-row { gap: 10px 16px; }
  .upload-actions { flex-direction: column; align-items: center; }
  .upload-choice { align-items: center; flex-direction: column; gap: 12px; }
  .workspace-head h1 { font-size: 36px; }
  .workspace-head p { max-width: 100%; }
  .progress-pill { display: none; }
  .review-info h2 { font-size: 13px; }
  .candidate { grid-template-columns: 18px 1fr; }
  .candidate em { display: none; }
  .catalog-search > div { grid-template-columns: 1fr; }
  .catalog-search input { min-height: 44px; }
  .select-grid { grid-template-columns: 1fr; }
  .detail-cover-wrap { display: block; }
  .large-cover { width: 70%; }
  .detail-cover-wrap p { margin-top: 10px; }
  .report-hero { margin-left: -18px; margin-right: -18px; }
  .total-card > strong { font-size: 25px; }
  .report-item { grid-template-columns: 58px 1fr; }
  .report-item .price-block, .report-item .analogs { grid-column: 2; }
  .report-item .analogs { grid-row: auto; }
  .russian-pages { grid-column: 1 / -1; }
  .russian-pages > b { margin-bottom: 10px; font-size: 11px; }
  .russian-pages a { padding: 12px; align-items: flex-start; gap: 9px; }
  .russian-pages a span { overflow: visible; font-size: 11px; line-height: 1.35; text-overflow: clip; white-space: normal; }
  .russian-pages a strong { display: block; margin: 0 0 3px; font-size: 10px; }
  .russian-pages a em { font-size: 12px; }
  .russian-pages .russian-primary small { font-size: 10px; }
  .marketplace-status { gap: 7px; }
  .marketplace-status-item { padding: 7px 8px; }
  .marketplace-status-item b, .marketplace-status-item small { font-size: 10px; }
  .value-badge { display: none; }
}
