.search-panel {
    width: var(--search-width, 640px);
    max-width: calc(100vw - 32px);
    max-height: min(80dvh, 680px);
    margin: auto;
    border-radius: 8px;
    overflow: hidden;
}
.search-panel[open] { display: flex; flex-direction: column; }
.search-panel::backdrop { background: #18201d70; backdrop-filter: none; }
.search-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px 4px; flex: none; }
.search-panel-header h2 { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 550; }
.search-panel .icon-button { width: 44px; height: 44px; flex: 0 0 44px; }
.search-panel .icon-button svg { width: 21px; height: 21px; }
.search-panel-field { display: flex; align-items: center; gap: 0; margin: 0 24px; padding: 1px; border: 1px solid #b9bfbb; border-radius: 4px; flex: none; min-width: 0; }
.search-panel-field:focus-within { border-color: var(--ink); }
.search-panel-field input { width: 100%; min-width: 0; flex: 1 1 0; min-height: 44px; border: 0; border-radius: 0; padding: 8px 0; background: transparent; font: inherit; font-size: 16px; line-height: 1.5; color: inherit; outline: none; }
.search-panel-field input:focus-visible { outline: none; }
.search-panel-field input::-webkit-search-cancel-button { display: none; }
.search-panel-field input::placeholder { color: #000; opacity: 1; }
.search-panel .search-clear { color: #000; }
.search-panel-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 24px; }
.search-message { margin: 0; padding: 20px 0 24px; font-size: 14px; line-height: 1.7; color: #000; }
.search-panel-results { display: grid; padding: 8px 0; }
.search-panel .search-result { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); text-align: start; }
.search-panel .search-result:last-child { border-bottom: 0; }
.search-panel .search-result img { flex: 0 0 50px; width: 50px; height: 64px; object-fit: contain; border-radius: 3px; }
.search-panel .search-result span { min-width: 0; }
.search-panel .search-result strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.search-panel .search-result small { display: block; margin-top: 4px; font-size: 14px; color: #000; font-weight: 550; }
.search-panel .search-result:hover { background: #f6f7f6; }
.search-panel :is(button, a):focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.search-all-results { display: flex; justify-content: center; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 14px 20px; min-height: 48px; flex: none; font-size: 14px; font-weight: 500; }
.search-all-results svg { width: 18px; height: 18px; }
.search-panel [hidden] { display: none; }
@media (max-width: 700px) {
    .search-panel { position: fixed; inset: var(--search-viewport-top, 0px) 0 auto; margin: 0; width: 100%; max-width: none; max-height: min(var(--search-mobile-height, 70dvh), calc(var(--search-viewport-height, 100dvh) - 8px)); border-radius: 0 0 8px 8px; padding-top: env(safe-area-inset-top); }
    .search-panel-header { padding: 0 10px 0 14px; flex-direction: row-reverse; }
    .search-panel-header h2 { font-size: 14px; font-weight: 500; }
    .search-panel-field { margin: 0 14px; }
    .search-panel-content { padding: 0 14px; }
    .search-message { padding: 16px 0 20px; font-size: 13px; }
    .search-panel .search-result { padding: 10px 2px; gap: 12px; }
    .search-panel .search-result img { width: 46px; height: 56px; flex-basis: 46px; }
    .search-panel .search-result strong { font-size: 13px; }
}
