/* Scoped to the ordinary lookup panel: existing billing screens keep their styles. */
#lookupPanel .competitor-lookup{padding:24px;border-color:#dbe7ef;background:#fff;box-shadow:0 5px 20px #214e7010}
#lookupPanel .lookup-head h3{font-size:22px;color:#000;letter-spacing:-.02em}
#lookupPanel .lookup-free{background:#eaf7f1;color:#176b59;border-color:#c9e6dc;font-size:12px}
#lookupPanel .lookup-textarea{min-height:150px;color:#000;background:#fcfdff;border-color:#cddde9;border-radius:12px;font-size:14px;line-height:1.8}
#lookupPanel .lookup-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:16px}
#lookupPanel .lookup-desktop-guide{background:#f5f9fc;border-color:#dce7f0;color:#425467}
#lookupPanel .lookup-desktop-guide strong,#lookupPanel label,#lookupPanel .lookup-install summary{color:#000}
#lookupPanel .lookup-result{border-radius:10px;background:#f1f7fb;color:#263e51;padding:12px 15px;line-height:1.7}
#lookupPanel .lookup-results{border:1px solid #dce7ef;border-radius:16px;background:#fff;margin-top:24px;padding:0;overflow:visible}
#lookupPanel .lookup-results-head{padding:20px 22px;margin:0;border-bottom:1px solid #e4edf4;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
#lookupPanel .lookup-results-head h3{font-size:19px;margin:0 0 6px;color:#000}
#lookupPanel #lookupSummary{font-size:13px;font-weight:500;color:#405466}
#lookupPanel .lookup-results-content{padding:20px 22px}
#lookupPanel .lookup-filters{display:flex;align-items:center;flex-wrap:wrap;gap:13px 18px;margin-bottom:13px}
#lookupPanel .lookup-filters>label{display:inline-flex;align-items:center;gap:9px;font-size:13px;white-space:nowrap}
#lookupPanel #lookupPercent{width:80px;min-height:40px;padding:8px 10px;border:1px solid #cddde9;border-radius:9px;background:#fff;color:#000}
#lookupPanel #lookupPercent[aria-invalid="true"]{border-color:#b75442;outline:2px solid #fbe7e2}
#lookupPanel #lookupFilterSummary{color:#405466;font-size:12px;margin-left:auto}
#lookupPanel .lookup-ratio-help{font-size:12px;line-height:1.8;color:#364b5f;background:#f3f8fd;border-left:3px solid #aacbeb;padding:10px 13px;margin:0 0 14px;border-radius:0 8px 8px 0}
#lookupPanel .lookup-result-note{font-size:12px;color:#815420;background:#fff8ec;border:1px solid #efe0bf;border-radius:9px;padding:11px 14px;margin-bottom:14px;line-height:1.8}
#lookupPanel .lookup-offer-wrap{border:1px solid #dce7ef;border-radius:12px;max-height:min(58vh,600px);overflow:auto;background:#fff;scrollbar-width:thin;overscroll-behavior:contain;overflow-anchor:none}
#lookupPanel .lookup-offer-table{min-width:870px;width:100%;border-collapse:collapse;table-layout:auto;margin:0}
#lookupPanel .lookup-offer-table th{position:sticky;top:0;z-index:1;background:#f4f8fc;color:#000;font-size:12px;font-weight:650;white-space:nowrap;padding:15px 13px;border-bottom:1px solid #dce7ef}
#lookupPanel .lookup-offer-table td{padding:17px 13px;font-size:13px;color:#000;border-bottom:1px solid #e6edf4;vertical-align:top;white-space:nowrap;line-height:1.65}
#lookupPanel .lookup-offer-table tr:last-child td{border-bottom:0}
#lookupPanel .lookup-offer-table tbody tr{background:#fff;transition:background-color .14s ease}
#lookupPanel .lookup-offer-table tbody tr:hover{background:#f8fbfe}
#lookupPanel .lookup-offer-table tbody tr.is-selected{background:#eff7fd}
#lookupPanel .lookup-check-cell{width:40px;min-width:40px;text-align:center}
#lookupPanel .lookup-offer-table input[type="checkbox"]{width:17px;height:17px;min-height:0;margin:2px 0 0;accent-color:#2d73b7;cursor:pointer;padding:0}
#lookupPanel .lookup-offer-table input[type="checkbox"]:disabled{cursor:default;opacity:.38}
#lookupPanel .lookup-competitor-cell{min-width:156px}
#lookupPanel .lookup-competitor-cell strong{display:block;font-size:14px;font-weight:700;color:#000;font-variant-numeric:tabular-nums}
#lookupPanel .lookup-competitor-cell span{display:block;color:#485b6b;font-size:12px;margin-top:3px;max-width:200px;white-space:normal;overflow-wrap:anywhere}
#lookupPanel .lookup-query-cell{font-variant-numeric:tabular-nums;font-weight:500}
#lookupPanel td.lookup-delta-low{color:#007f6c;font-weight:600}
#lookupPanel td.lookup-delta-high{color:#93622d;font-weight:600}
#lookupPanel td.lookup-delta-unknown{color:#596575}
#lookupPanel .lookup-badge{display:inline-block;padding:4px 9px;border-radius:7px;font-size:12px;line-height:1.6;white-space:normal;max-width:280px}
#lookupPanel .lookup-badge.confirmed{background:#eaf7f1;color:#246c5a}
#lookupPanel .lookup-badge.unconfirmed{background:#fff4e7;color:#815420}
#lookupPanel .lookup-empty{text-align:center;padding:34px!important;color:#596575!important}
#lookupPanel .lookup-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;min-height:42px}
#lookupPanel .lookup-pagination-meta{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 15px;color:#405466;font-size:12px}
#lookupPanel .lookup-pagination-meta label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:400}
#lookupPanel .lookup-selection-bar{padding:19px 22px;background:#f5f9fd;border-top:1px solid #dce7ef;border-radius:0 0 16px 16px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
#lookupPanel .lookup-selection-info strong{color:#000;font-size:14px}
#lookupPanel .lookup-selection-info p{color:#405466;font-size:12px;line-height:1.8;margin:6px 0 0}
#lookupPanel .lookup-selection-tools{display:flex;align-items:center;gap:10px;margin-top:8px}
#lookupPanel .lookup-text-button{border:0;background:transparent;color:#2869a7;font-size:12px;line-height:1.7;padding:2px 0;font-weight:500;min-height:24px;cursor:pointer}
#lookupPanel .lookup-text-button:not(:disabled):hover{color:#124e88;text-decoration:underline;box-shadow:none;transform:none;background:transparent}
#lookupPanel .lookup-selection-actions{display:flex;align-items:center;gap:9px;margin-left:auto;flex-wrap:wrap}
#lookupPanel .lookup-day24{background:#0a806d;border-color:#0a806d;color:#fff}
#lookupPanel .lookup-instant{background:#5346ce;border-color:#5346ce;color:#fff}
#lookupPanel .lookup-day24:hover:not(:disabled){background:#086f5e;border-color:#086f5e}
#lookupPanel .lookup-instant:hover:not(:disabled){background:#463ab9;border-color:#463ab9}
#lookupPanel .lookup-export-note{margin:12px 0 0;color:#405466;font-size:12px;line-height:1.8}
#lookupPanel .lookup-overview{padding:0;border:1px solid #dce7ef;border-radius:12px;margin:20px 0 0;background:#fff}
#lookupPanel .lookup-overview summary{padding:14px 16px;color:#000;font-weight:600;cursor:pointer;font-size:13px}
#lookupPanel .lookup-overview summary small{color:#485b6b;font-size:12px;font-weight:400;margin-left:10px}
#lookupPanel .lookup-overview .table-wrap{border:0;border-top:1px solid #e6edf4;border-radius:0 0 12px 12px;max-height:390px;overflow:auto}
#lookupPanel .lookup-overview table{min-width:650px;width:100%}
#lookupPanel .lookup-overview th{color:#000;background:#f4f8fc;position:sticky;top:0;z-index:1;padding:12px 14px}
#lookupPanel .lookup-overview td{color:#000;padding:12px 14px;font-size:12px}
#lookupPanel .btn{border-radius:10px;transition:background-color .17s ease,border-color .17s ease,box-shadow .17s ease,transform .17s ease}
#lookupPanel .btn:focus-visible,#lookupPanel input:focus-visible{outline:2px solid #8bb9e4;outline-offset:3px}
#lookupPanel .patrol-select{position:relative;display:inline-flex;max-width:100%;min-width:0;vertical-align:middle}
#lookupPanel .patrol-select select.patrol-select-native{position:absolute;inset:0;width:1px!important;max-width:1px!important;min-width:0!important;height:1px!important;min-height:0!important;margin:0;padding:0;border:0;opacity:0;pointer-events:none;clip-path:inset(50%);overflow:hidden}
#lookupPanel .patrol-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:0;width:100%;min-height:40px;padding:8px 12px;border:1px solid #ccdeed;border-radius:10px;background:#fff;color:#000;font-family:inherit;font-size:13px;font-weight:500;line-height:1.6;text-align:left;white-space:normal;box-shadow:0 1px 2px #244e7503;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease;transform:none;cursor:pointer}
#lookupPanel .patrol-select-value{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#lookupPanel .patrol-select-chevron{display:block;flex:none;width:7px;height:7px;margin:-3px 2px 0 0;border-right:1.5px solid #6f8ca9;border-bottom:1.5px solid #6f8ca9;transform:rotate(45deg);transition:transform .16s ease}
#lookupPanel .patrol-select.is-open .patrol-select-chevron{margin-top:3px;transform:rotate(225deg)}
#lookupPanel .patrol-select-trigger:not(:disabled):hover{transform:none;background:#f7fbff;background-image:none;border-color:#8fb8de;box-shadow:0 2px 8px #326d9d0b}
#lookupPanel .patrol-select.is-open .patrol-select-trigger,#lookupPanel .patrol-select-trigger:focus-visible{border-color:#80b0dd;background:#f8fbff;box-shadow:0 0 0 3px #e5f0fb;outline:none;transform:none}
#lookupPanel .patrol-select-trigger:not(:disabled):active{transform:none;background:#eef6fd}
#lookupPanel .patrol-select.is-disabled .patrol-select-trigger{background:#f8fafc;color:#667382;opacity:1;border-color:#e1e9f1;box-shadow:none;cursor:default}
#lookupPanel .lookup-filters .patrol-select{min-width:250px}
#lookupPanel .patrol-select-compact .patrol-select-trigger{min-height:32px;padding:4px 9px;gap:14px;border-radius:8px;font-size:12px;font-weight:400;white-space:nowrap}
:is(#lookupPriceFilter-menu,#lookupPageSize-menu,#lookupConcurrency-menu){position:fixed;z-index:900;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:5px;border:1px solid #d5e4f1;border-radius:12px;background:#fff;color:#000;box-shadow:0 12px 34px #24476b17,0 2px 6px #24476b08;scrollbar-width:thin;scrollbar-color:#c8d9e8 transparent;font:13px/1.6 "Microsoft YaHei",system-ui,sans-serif}
:is(#lookupPriceFilter-menu,#lookupPageSize-menu,#lookupConcurrency-menu) .patrol-select-option{position:relative;min-height:37px;padding:9px 30px 9px 11px;border-radius:7px;cursor:pointer;overflow-wrap:anywhere;line-height:1.5;transition:background-color .12s ease,color .12s ease}
:is(#lookupPriceFilter-menu,#lookupPageSize-menu,#lookupConcurrency-menu) .patrol-select-option.is-highlighted{background:#f1f7fd;color:#000}
:is(#lookupPriceFilter-menu,#lookupPageSize-menu,#lookupConcurrency-menu) .patrol-select-option[aria-selected="true"]{background:#eaf3fc;color:#000;font-weight:600}
:is(#lookupPriceFilter-menu,#lookupPageSize-menu,#lookupConcurrency-menu) .patrol-select-option[aria-selected="true"]::after{content:"✓";position:absolute;right:10px;top:10px;font-size:12px;color:#397cbd}
:is(#lookupPriceFilter-menu,#lookupPageSize-menu,#lookupConcurrency-menu) .patrol-select-option[aria-disabled="true"]{color:#a3b0bd;cursor:default;background:transparent}
@media(max-width:1000px){#lookupPanel .lookup-selection-actions{width:100%;margin-left:0;justify-content:flex-end}#lookupPanel #lookupFilterSummary{margin-left:0}}
@media(max-width:650px){#lookupPanel .competitor-lookup{padding:16px}#lookupPanel .lookup-results-head,#lookupPanel .lookup-results-content,#lookupPanel .lookup-selection-bar{padding:16px}#lookupPanel .lookup-results-head{align-items:flex-start}#lookupPanel .lookup-filters{gap:12px}#lookupPanel .lookup-filters>label{flex-wrap:wrap;white-space:normal;max-width:100%}#lookupPanel .lookup-filters .patrol-select{min-width:0;max-width:100%}#lookupPanel .lookup-selection-actions{display:grid;grid-template-columns:1fr 1fr}#lookupPanel #lookupExportSelected{grid-column:1/-1}#lookupPanel .lookup-pagination{gap:7px}#lookupPanel .lookup-pagination .btn{padding:7px 9px}#lookupPanel .lookup-pagination-meta{font-size:11px;gap:5px}#lookupPanel .lookup-pagination-meta>span{width:100%}#lookupPanel .lookup-overview summary small{display:block;margin:5px 0 0}}
@media(prefers-reduced-motion:reduce){#lookupPanel .btn,#lookupPanel .patrol-select-trigger,#lookupPanel .patrol-select-chevron,#lookupPanel .lookup-offer-table tbody tr{transition:none!important}#lookupPanel .btn{transform:none!important}}
