/* One-card scanner. Keep the rest of the collector workspace unchanged. */
.price-tab-short { display: none; }
.price-checker { max-width: 1320px; margin-inline: auto; }
.price-checker [hidden] { display: none !important; }
.price-check-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.price-check-head h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.04em; }
.price-check-head .hint { margin: 4px 0 0; }
.price-private { border: 1px solid var(--line); background: var(--bg-2); color: var(--ok); border-radius: 99px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.price-check-layout { display: grid; grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.price-checker .card { margin: 0; padding: 16px; }
.price-check-input { min-width: 0; }
.price-check-input.drag { outline: 2px solid var(--accent); background: var(--bg-3); }
.price-input-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.price-auto-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; }
.price-checker .price-auto-controls label { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.price-checker .price-auto-controls input { width: 20px; min-height: 20px; height: 20px; flex: none; }
.price-auto-controls .hint { margin: 0; }
.price-auto-status { font-size: 12px; color: var(--accent); line-height: 1.4; margin: 8px 0 0; min-height: 17px; }
.price-checker .btn { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.price-checker .hint, .price-privacy-note { font-size: 12px; line-height: 1.55; color: var(--ink-3); }
.price-privacy-note { margin: 12px 0 16px; }
.price-manual-search { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.price-checker label { font-size: 13px; font-weight: 700; margin: 0; }
.price-checker input, .price-checker select { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; }
.price-manual-search label:not(:first-child) { margin-top: 6px; }
.price-search-help { margin: 0; }
.price-status { color: var(--ink-2); font-size: 14px; line-height: 1.5; margin: 0 0 10px; overflow-wrap: anywhere; }
#pcCameraStatus:empty { display: none; }
#pcCameraStatus:not(:empty) { margin: 12px 0 0; }
.price-camera { margin-top: 12px; }
.price-camera-view { --price-frame-height: clamp(250px, 46dvh, 430px); position: relative; height: var(--price-frame-height); overflow: hidden; border-radius: 14px; background: #080d16; margin-bottom: 10px; }
.price-camera video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.price-camera-guide { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(84%, calc(var(--price-frame-height) * .8 * 63 / 88)); height: auto; aspect-ratio: 63 / 88; border: 2px solid #fff; border-radius: 12px; box-shadow: 0 0 0 100vmax #0008; pointer-events: none; }
.price-camera-tip { position: absolute; bottom: 10px; left: 8px; right: 8px; text-align: center; color: #fff; font-size: 12px; text-shadow: 0 1px 4px #000; }
.price-camera-fallback { margin-top: 10px; }
.price-check-output { min-width: 0; display: grid; gap: 12px; }
.price-coverage { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.price-photo-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.price-photo-row img { display: block; width: 70px; max-height: 100px; object-fit: contain; border-radius: 6px; flex: none; }
.price-candidates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.price-candidates:empty { display: none; }
.price-candidate { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.price-candidate[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg-2)); }
.price-candidate img, .price-no-art { display: block; width: 44px; height: 62px; object-fit: contain; border-radius: 4px; flex: none; }
.price-no-art { font-size: 10px; color: var(--ink-3); }
.price-candidate > span:not(.price-candidate-arrow):not(.price-no-art) { display: grid; gap: 4px; min-width: 0; flex: 1; }
.price-candidate strong { font-size: 14px; line-height: 1.25; }
.price-candidate small { color: var(--ink-3); font-size: 11px; line-height: 1.35; }
.price-candidate .price-match-label { color: var(--accent); font-size: 10px; font-weight: 700; }
.price-candidate .price-printings { color: var(--ink-2); }
.price-more-matches { justify-self: start; }
.price-candidate strong, .price-candidate small { overflow-wrap: anywhere; }
.price-candidate-arrow { color: var(--accent); flex: none; }
.price-selected-head { display: grid; gap: 4px; margin-bottom: 14px; }
.price-selected-head strong { font-size: 20px; }
.price-selected-head span { color: var(--ink-3); font-size: 13px; }
.price-checker .price-change-card { display: block; margin-bottom: 12px; }
.price-finish-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.price-finish-row .btn { flex: none; }
.price-selection .hint { margin: 10px 0 0; }
.price-market-head { display: grid; gap: 2px; }
.price-market-head > span { color: var(--ink-2); font-size: 13px; }
.price-market-head > strong { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.price-listed { display: flex; gap: 8px; align-items: baseline; margin: 4px 0 12px; color: var(--ink-3); font-size: 13px; }
.price-percentages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 14px 0; }
.price-percentages > div { display: grid; gap: 5px; padding: 10px; border-radius: 9px; background: var(--bg-3); min-width: 0; }
.price-percentages span { font-size: 12px; color: var(--ink-3); }
.price-percentages strong { font-size: clamp(13px, 2vw, 18px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.price-quote-note { color: var(--warn); font-size: 13px; line-height: 1.5; }
.price-quote-loading { color: var(--ink-3); }
.price-checker :is(button, input, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media screen and (max-width: 1180px) {
  #tabs .price-tab-long { display: none; }
  #tabs .price-tab-short { display: inline; }
}
@media screen and (min-width: 761px) and (max-width: 1180px) {
  .topbar #tabs:has([data-tab="price"]) .tab { display: grid; justify-items: center; align-content: center; gap: 2px; padding: 3px 6px; font-size: 11px; }
}
@media screen and (min-width: 761px) and (max-width: 900px) {
  .topbar:has([data-tab="price"]) > .brand > div { display: none; }
}
@media screen and (max-width: 760px) {
  .topbar #tabs:has([data-tab="price"]) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .topbar #tabs:has([data-tab="price"]) .tab { padding-inline: 0; font-size: 9px; gap: 3px; }
  .price-check-head { margin-bottom: 12px; }
  .price-check-head .price-private { display: none; }
  .price-check-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .price-checker .card { padding: 12px; }
  .price-input-actions .btn { padding-inline: 9px; font-size: 12px; }
  .price-camera-view { --price-frame-height: clamp(220px, 32dvh, 300px); }
  .price-checker.camera-open :is(.price-manual-search, .price-privacy-note, .price-photo-tips) { display: none; }
  .price-checker.camera-open #pcClear { display: none; }
  .price-checker.camera-open #pcCamera { display: none; }
  .price-checker.camera-open #pcCameraStatus { display: none; }
  .price-checker.camera-open .price-auto-controls .hint { display: none; }
  .price-checker.camera-open .price-coverage { font-size: 11px; }
  .price-candidates { grid-template-columns: minmax(0, 1fr); }
  .price-candidate img { width: 44px; height: 62px; }
  .price-finish-row { flex-wrap: wrap; }
  .price-finish-row select { flex: 1 1 180px; }
  .price-percentages > div { padding: 9px 7px; }
}
@media print { #panel-price { display: none !important; } }
