.search-dialog{inset:24px 0 auto;width:min(620px,calc(100% - 32px));height:auto;max-height:calc(100dvh - 48px);margin:0 auto;padding:24px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);overflow:auto;overscroll-behavior:contain}
.search-dialog::backdrop{background:#102a20a3;backdrop-filter:blur(4px)}
.search-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.search-dialog-head h2{font-size:28px;text-align:left}
.search-dialog-head .icon-button{flex-shrink:0}
.search-dialog-field{display:flex;border-bottom:1px solid var(--ink);align-items:center}
.search-dialog-field input{min-width:0;flex:1;border:0;background:transparent;padding:14px 0;font-size:16px}
.search-status{font-size:12px;min-height:20px;margin:14px 0 6px}
.search-result{display:grid;grid-template-columns:72px minmax(0,1fr) 22px;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.search-result img{width:72px;height:72px;object-fit:contain;background:white;border-radius:4px}
.search-result:not(:has(img)){grid-template-columns:minmax(0,1fr) 22px}
.search-result strong{display:block;font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.search-result-price{display:block;font-size:13px;margin-top:6px}
.search-result:hover{background:#e6efdf}
.search-all{margin-top:20px;border:0;border-bottom:1px solid currentColor;background:transparent;padding:0 0 7px}
.sticky-buy{display:none}
.lost-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:60px;background:#e6efdf;min-height:calc(100svh - 110px)}
.lost-scene{position:relative;min-width:0;aspect-ratio:1;max-width:560px;width:100%;margin:auto;isolation:isolate}
.lost-scene img{position:absolute;inset:10% 4% 0;width:92%;height:90%;object-fit:contain;transform:rotate(-12deg);filter:drop-shadow(0 14px 14px #183e2c18)}
.lost-number{position:absolute;top:0;left:0;right:0;text-align:center;font:600 180px/1 var(--display);color:#b3d89c;z-index:-1}
.lost-bubble{position:absolute;bottom:8%;right:0;max-width:170px;background:var(--paper);border-radius:50%;padding:22px;font:600 20px/1.2 var(--display);text-align:center;transform:rotate(8deg);box-shadow:0 4px 15px #183e2c0d;overflow-wrap:anywhere}
.lost-copy h1{font-size:52px;margin:20px 0}
.lost-copy>p{max-width:420px}
.lost-actions{display:flex;align-items:center;flex-wrap:wrap;gap:26px;margin-top:30px}
@media(max-width:760px){
  .sticky-buy:not([hidden]){display:flex;position:fixed;left:0;right:0;bottom:0;z-index:65;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -5px 22px #183e2c0d}
  .sticky-buy-info{min-width:0;flex:1}
  .sticky-buy-info>span{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sticky-buy-info strong{display:block;font:600 23px/1.3 var(--display)}
  .sticky-buy>.button{flex-shrink:0;min-height:48px;min-width:146px;gap:14px;padding:12px 18px;font-size:13px}
  body.has-sticky-buy{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  body:has(#PBarNextFrame) .sticky-buy{bottom:80px}
  body.has-sticky-buy .cart-confirmation{bottom:calc(96px + env(safe-area-inset-bottom))}
  body.has-sticky-buy:has(#PBarNextFrame) .cart-confirmation{bottom:calc(176px + env(safe-area-inset-bottom))}
  .lost-page{grid-template-columns:minmax(0,1fr);gap:20px;min-height:auto;padding-top:30px}
  .lost-scene{max-width:360px}
  .lost-number{font-size:130px}
  .lost-bubble{font-size:17px;max-width:145px;padding:18px}
  .lost-copy{text-align:center}
  .lost-copy .section-label,.lost-actions{justify-content:center}
  .lost-copy h1{font-size:38px;margin-top:16px}
  .lost-copy>p{margin:auto;font-size:14px}
}
@media(max-width:400px){.search-dialog{padding:16px}.search-dialog-head h2{font-size:23px}.search-result{gap:12px;grid-template-columns:60px minmax(0,1fr) 22px}.search-result img{width:60px;height:60px}.sticky-buy:not([hidden]){gap:12px;padding-left:16px;padding-right:16px}.sticky-buy>.button{min-width:132px}.lost-number{font-size:112px}}
