/* Layout of the supplied mobile references. Search data/algorithms stay in index.html. */
@media (max-width: 700px) {
  body[data-screen="search"]:not([data-active-tab="sell"]) .bar { padding-bottom: 4px; }
  body[data-screen="search"] #s-search .herovis { display: none; }
  :is(#s-search, #s-local-results) > .top { padding: 15px 18px 12px; gap: 16px; }
  #s-search .brand { font-size: 24px; }
  #modeSeg { min-height: 38px; padding: 0; border-radius: 18px; background: #fff; }
  #modeSeg button { min-height: 38px; padding: 9px 8px; border-radius: 17px; font-size: 13px; }
  #s-search .hero { padding: 16px 0 14px; }
  #heroTitle { font-size: 34px; line-height: 1.03; letter-spacing: -1.3px; max-width: 360px; }
  #modeSub { font-size: 14px; line-height: 1.35; margin-top: 12px; }
  #s-search .herogrid { display: block; }
  #s-search .presetrow { margin: 3px 0 18px; }
  #presets { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 7px; }
  #presets button { white-space: nowrap; background: #fff; border: 0; padding: 10px 11px; border-radius: 22px; font-size: 11px; }
  #p-search { border: 0; border-radius: 16px; box-shadow: 0 8px 25px #00000003; overflow: hidden; }
  #p-search > .field { min-height: 68px; display: grid; grid-template-columns: 1fr auto; padding: 12px 16px; align-items: center; row-gap: 5px; }
  #p-search > .field .k { grid-row: 1; grid-column: 1; font-size: 12px; font-weight: 400; color: #777; }
  #p-search > .field .v { grid-row: 2; grid-column: 1; font-size: 16px; font-weight: 500; text-align:start; }
  #p-search > .field .ch { grid-row: 1 / 3; grid-column: 2; }
  #p-search input { text-align:start; }
  #p-search .rule-row { min-height: 50px; padding: 12px 16px; }
  #s-search .helprow { margin-top: 18px; font-size: 11px; }
  body[data-screen="search"] .bar .cta { min-height: 50px; border-radius: 12px; box-shadow: none; }
  .bar .cta .i { display: none; }
  #s-results .top-results { padding: 12px 16px 4px; }
  #s-results #scanTime { display: block; color: var(--muted); font-size: 10px; margin: 4px 0; }
  body[data-active-tab="sell"] #s-search .hero,
  body[data-active-tab="sell"] #s-search .herogrid { display: none; }
}
.res-card .tile .photo-state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.res-card .tile.has .photo-state { display: none; }
.res-card .tile img.photo { width: 100%; height: 100%; object-fit: cover; }
body[data-mode="sell"] #s-search .wrap { display: none; }
body[data-mode="sell"] #seller-panel { display: block; }
@media (min-width: 701px) {
  #s-search .herogrid { grid-template-columns: minmax(0,1fr); }
}
.reference-empty { text-align: center; padding: 38px 20px; list-style: none; }
.reference-empty h2 { font-size: 23px; margin: 20px 0 10px; color: var(--ink); }
.reference-empty p,.reference-empty small { color: var(--muted); font-size: 12px; }
.reference-empty small { display: block; margin-top: 12px; }
.empty-actions { margin: 28px 0; overflow: hidden; border-radius: 14px; background: #fff; }
.empty-actions button { display: flex; width: 100%; justify-content: space-between; padding: 18px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: inherit; font-size: 13px; cursor: pointer; text-align:start; }