body.addr-api-open { overflow: hidden; }

.addr-api-layer { display: none; position: fixed; inset: 0; z-index: 100000; }
.addr-api-layer.open { display: block; }
.addr-api-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .58); }
.addr-api-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .28);
    overflow: hidden;
}
.addr-api-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    padding: 0 18px;
    border-bottom: 1px solid #e5e5e5;
}
.addr-api-title { margin: 0; font-size: 18px; font-weight: 700; color: #111; }
.addr-api-close {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #222;
    cursor: pointer;
}
.addr-api-body { padding: 18px; }
.addr-api-search { display: flex; gap: 8px; }
.addr-api-search input { flex: 1; height: 42px; padding: 0 12px; border: 1px solid #ccc; }
.addr-api-search button { width: 88px; height: 42px; border: 0; background: #111; color: #fff; cursor: pointer; }
.addr-api-result { margin-top: 14px; max-height: 380px; overflow-y: auto; border-top: 1px solid #ddd; }
.addr-api-empty { margin: 0; padding: 28px 0; text-align: center; color: #666; }
.addr-api-items { margin: 0; padding: 0; list-style: none; }
.addr-api-items li { border-bottom: 1px solid #eee; }
.addr-api-items button { display: block; width: 100%; padding: 14px 4px; border: 0; background: #fff; text-align: left; cursor: pointer; }
.addr-api-items button:hover,
.addr-api-items button:focus { background: #f7f7f7; }
.addr-api-items strong { display: block; font-size: 15px; color: #111; }
.addr-api-items span { display: block; margin-top: 5px; font-size: 13px; color: #666; }
.addr-api-items em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 12px; color: #444; }
.addr-api-paging { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.addr-api-paging button { min-width: 32px; height: 32px; border: 1px solid #ccc; background: #fff; cursor: pointer; }
.addr-api-paging button.active { border-color: #111; background: #111; color: #fff; }

@media (max-width: 640px) {
    .addr-api-panel { width: 100%; height: 100%; max-height: none; border-radius: 0; }
    .addr-api-result { max-height: calc(100vh - 190px); }
}
