/* Scoped query workspace; reuse existing delivery and copy/download components. */
body.premium-site[data-view="query"]{--ps-content-width:1180px}
body.premium-site #app .qo-page{max-width:1180px;width:calc(100% - 48px);padding:26px 0 56px;margin:0 auto}
body.premium-site #app .qo-header{max-width:760px;text-align:center;margin:0 auto 24px}
body.premium-site #app .qo-title{font-size:28px;line-height:1.4;margin:0 0 7px;letter-spacing:-.6px}
body.premium-site #app .qo-desc{font-size:14px;margin:0;color:#99a7be}
body.premium-site #app .qo-page .qo-form{display:grid;grid-template-columns:1fr;max-width:760px;align-items:stretch;gap:18px;padding:24px;margin:0 auto 30px;color-scheme:light;border:1px solid var(--checkout-line)!important;border-radius:14px;background:var(--checkout-card)!important;color:var(--checkout-ink)!important;box-shadow:none!important}
body.premium-site #app .qo-form .qo-field{margin:0;min-width:0}
body.premium-site #app .qo-form .qo-label{font-size:13px;color:var(--checkout-ink)!important;margin-bottom:7px}
body.premium-site #app .qo-form .qo-input{height:47px;padding:11px 13px 11px 43px;background:var(--checkout-card)!important;color:var(--checkout-ink)!important;border:1px solid #b6c4d7!important;border-radius:8px;font-size:14px;box-sizing:border-box;width:100%}
body.premium-site #app .qo-form .qo-input-icon{width:18px;height:18px;left:14px;color:var(--checkout-muted);padding:0!important;background:transparent!important;border-radius:0}
body.premium-site #app .qo-form .qo-submit{height:47px;min-height:47px;margin:0;padding:10px 18px;border-radius:8px;background:var(--checkout-action)!important;color:var(--checkout-action-ink)!important;font-size:14px;font-weight:600;box-shadow:none;transform:none}
body.premium-site #app .qo-page .qo-result-area{margin:0}
.qo-browser{color-scheme:light;color:var(--checkout-ink);text-align:left}
.qo-browser *{box-sizing:border-box}
.qo-browser-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}
.qo-browser-heading h2{font-size:21px;line-height:1.5;letter-spacing:0;color:#e3eaf5;margin:0;font-weight:650}
.qo-browser-heading h2>span{font-size:13px;font-weight:500;display:inline-block;vertical-align:middle;border-radius:6px;background:var(--checkout-selection);color:var(--checkout-highlight);padding:1px 8px;margin-left:7px}
.qo-browser-heading p{font-size:12px;color:#93a4bd;margin:4px 0 0;line-height:1.5}
.qo-newest-note{font-size:12px;color:#8394ae;white-space:nowrap}
.qo-browser-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px;flex-wrap:wrap}
.qo-product-filters{display:flex;gap:7px;flex-wrap:wrap}
.qo-product-filters button{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 13px;border:1px solid var(--checkout-line);border-radius:8px;background:var(--checkout-card);color:var(--checkout-muted);cursor:pointer;font-family:inherit;font-size:13px;line-height:1.4;font-weight:500;transition:background .15s,border-color .15s}
.qo-product-filters button[aria-pressed="true"]{background:var(--checkout-selection);border-color:var(--checkout-accent);color:var(--checkout-highlight)}
.qo-product-filters button>span{font:500 11px/1.4 system-ui;background:#edf2f9;border-radius:4px;padding:0 4px;min-width:17px;text-align:center;color:inherit}
.qo-product-filters button[aria-pressed="true"]>span{background:#d7e6fb}
.qo-list-search{display:flex;align-items:center;gap:8px;min-width:220px;border:1px solid var(--checkout-line);border-radius:8px;padding:8px 11px;background:var(--checkout-card);color:var(--checkout-muted)}
.qo-list-search svg{width:17px;height:17px;flex-shrink:0}
.qo-list-search input{background:transparent;border:0;outline:0;color:var(--checkout-ink);font-family:inherit;font-size:13px;line-height:1.5;width:100%;min-width:0;padding:0}
.qo-list-search input::placeholder{color:#607087}
.qo-workspace{display:grid;grid-template-columns:310px minmax(0,1fr);gap:16px;align-items:start;scroll-margin-top:130px}
.qo-list-panel,.qo-detail-panel{height:clamp(460px,calc(100dvh - 245px),680px);min-width:0;border:1px solid var(--checkout-line);border-radius:13px;background:var(--checkout-card);overflow:hidden;display:flex;flex-direction:column}
.qo-list-heading,.qo-detail-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:51px;padding:13px 17px;background:var(--checkout-soft);border-bottom:1px solid var(--checkout-line);flex-shrink:0}
.qo-list-heading strong,.qo-detail-topbar strong{font-size:14px;font-weight:650;color:var(--checkout-ink)}
.qo-list-heading>span,.qo-detail-topbar>span{color:var(--checkout-muted);font-size:11px}
.qo-summary-list{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:auto;scrollbar-width:thin}
.qo-summary{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--checkout-line);border-left:3px solid transparent;padding:13px 14px 12px 13px;background:var(--checkout-card);color:var(--checkout-ink);cursor:pointer;font-family:inherit;min-height:103px;transition:background .15s}
.qo-summary:hover{background:var(--checkout-soft)}
.qo-summary[aria-pressed="true"]{border-left-color:var(--checkout-accent);background:var(--checkout-selection)}
.qo-summary-top{display:flex;align-items:center;gap:7px;justify-content:space-between;margin-bottom:3px}
.qo-summary-top>strong{font-size:14px;font-weight:650;line-height:1.5;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qo-summary-status{font-size:10px;line-height:1.5;font-weight:500;flex-shrink:0;color:var(--checkout-muted);background:#edf2f9;border-radius:4px;padding:2px 5px}
.qo-summary-status[data-kind="done"]{background:#e4f5ed;color:#1b684b}
.qo-summary-status[data-kind="pending"]{background:#fff1db;color:#7b531b}
.qo-summary-status[data-kind="failed"]{background:#fcebee;color:#9e3344}
.qo-summary-plan{display:block;font-size:12px;color:var(--checkout-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.6}
.qo-summary-sn{display:block;font:11px/1.7 ui-monospace,Consolas,monospace;color:var(--checkout-muted);overflow-wrap:anywhere}
.qo-summary-bottom{display:flex;align-items:center;gap:8px;margin-top:5px;font-size:11px;color:var(--checkout-muted)}
.qo-summary-bottom>b{margin-left:auto;font-size:12px;color:var(--checkout-highlight);font-weight:650}
.qo-summary-bottom>span{font-size:15px;color:var(--checkout-highlight)}
.qo-list-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:54px;padding:10px 12px;background:var(--checkout-soft);border-top:1px solid var(--checkout-line);flex-shrink:0}
.qo-list-pagination button,.qo-browser-empty button,.qo-mobile-back{border:1px solid #b6c4d7;border-radius:6px;padding:7px 10px;background:var(--checkout-card);color:var(--checkout-highlight);font-family:inherit;font-size:12px;line-height:1.4;font-weight:500;cursor:pointer;min-height:33px}
.qo-list-pagination button:disabled{opacity:.4;cursor:default}
.qo-list-pagination>span{font-size:11px;color:var(--checkout-muted)}
.qo-detail-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:auto;scrollbar-width:thin}
.qo-workspace[data-detail-product="apt"] .qo-detail-panel{height:auto;min-height:460px;overflow:visible}
.qo-workspace[data-detail-product="apt"] .qo-detail-scroll{overflow:visible;flex:none}
@media(min-width:801px){.qo-list-panel{position:sticky;top:130px}}
body.premium-site #app .qo-detail-scroll .qo-order{margin:0;border:0;border-radius:0;box-shadow:none}
body.premium-site #app .qo-detail-scroll .qo-order-head{padding:14px 18px;background:var(--checkout-soft);gap:10px}
body.premium-site #app .qo-detail-scroll .qo-order-body{padding:18px}
body.premium-site #app .qo-detail-scroll .qo-meta{margin:0 0 16px;gap:9px;grid-template-columns:1.2fr .6fr 1.1fr}
body.premium-site #app .qo-detail-scroll .qo-meta-item{padding:11px 12px}
body.premium-site #app .qo-detail-scroll .qo-meta-item dd{font-size:13px}
body.premium-site #app .qo-detail-scroll .apt-delivery{margin:0;border-radius:10px}
body.premium-site #app .qo-detail-scroll .apt-delivery-actions{display:none}
.qo-mobile-back{display:none}
.qo-browser-empty{padding:42px 20px;text-align:center;color:var(--checkout-muted)}
.qo-browser-empty strong{font-size:14px;color:var(--checkout-ink)}
.qo-browser-empty p{font-size:12px;line-height:1.7;margin:8px 0 16px;color:var(--checkout-muted)}
.qo-browser button:focus-visible,.qo-list-search:focus-within{outline:3px solid var(--checkout-accent);outline-offset:2px}
body.premium-site #app .qo-page .qo-help-block{margin-top:24px;padding-top:0;border-top:0}
@media(min-width:1200px){
 body.premium-site #app .qo-page{--qo-detail-width:clamp(640px,calc(100vw - 608px),900px);max-width:none}
 .qo-browser-heading,.qo-browser-toolbar{max-width:var(--qo-detail-width);margin-left:auto;margin-right:auto}
 .qo-workspace{grid-template-columns:minmax(0,1fr) minmax(0,var(--qo-detail-width)) minmax(0,1fr);gap:20px}
 .qo-list-panel{grid-column:1;grid-row:1;width:min(280px,100%);justify-self:end}
 .qo-detail-panel{grid-column:2;grid-row:1}
}
@media(max-width:1000px){.qo-workspace{grid-template-columns:280px minmax(0,1fr)}.qo-browser-toolbar{gap:10px}.qo-list-search{flex:1;min-width:190px}body.premium-site #app .qo-detail-scroll .qo-meta{grid-template-columns:1fr 1fr}body.premium-site #app .qo-detail-scroll .qo-meta-item:last-child{grid-column:1/-1}}
@media(max-width:800px){
 body.premium-site #app .qo-page{width:calc(100% - 32px);padding:22px 0 60px}
 body.premium-site #app .qo-title{font-size:25px}
 body.premium-site #app .qo-page .qo-form{grid-template-columns:1fr;padding:18px;gap:15px;margin-bottom:25px}
 body.premium-site #app .qo-form .qo-submit{grid-column:1/-1;height:44px;min-height:44px}
 .qo-browser-heading{margin-bottom:13px}.qo-browser-heading h2{font-size:19px}.qo-browser-heading p{font-size:11px}.qo-newest-note{display:none}
 .qo-browser-toolbar{display:block}.qo-product-filters{gap:6px;margin-bottom:10px}.qo-product-filters button{padding:8px 11px;font-size:12px}.qo-list-search{min-width:0;width:100%;padding:10px 12px}
 .qo-workspace{display:block;scroll-margin-top:95px}.qo-list-panel,.qo-detail-panel{height:auto;max-height:none;border-radius:10px}
 .qo-workspace[data-mobile-view="list"] .qo-detail-panel{display:none}.qo-workspace[data-mobile-view="detail"] .qo-list-panel{display:none}
 .qo-summary-list{overflow:visible}.qo-summary{min-height:98px;padding:13px 16px 12px 13px}.qo-summary-top>strong{font-size:14px}.qo-summary-status{font-size:11px}.qo-summary-sn{font-size:11px}
 .qo-detail-scroll{overflow:visible;max-height:none}.qo-detail-topbar{justify-content:flex-start;padding:10px 12px;gap:12px}.qo-detail-topbar>strong{font-size:13px}.qo-detail-topbar>span{display:none}.qo-mobile-back{display:inline-flex;align-items:center;min-height:36px}
 body.premium-site #app .qo-detail-scroll .qo-order-head{padding:13px 14px;flex-wrap:wrap}
 body.premium-site #app .qo-detail-scroll .qo-order-body{padding:13px}
 body.premium-site #app .qo-detail-scroll .qo-meta-item:last-child{grid-column:auto}
 body.premium-site #app .qo-detail-scroll .qo-order-sn{font-size:12px;overflow-wrap:anywhere}
 body.premium-site #app .qo-detail-scroll .qo-status{font-size:11px;padding:4px 7px}
}
@media(max-width:450px){body.premium-site #app .qo-page .qo-form{grid-template-columns:1fr}.qo-product-filters button{padding:8px 9px;gap:5px}.qo-product-filters button>span{font-size:10px}.qo-browser-heading p{max-width:230px}.qo-list-pagination{padding:10px 13px}}
@media(prefers-reduced-motion:reduce){.qo-browser button{transition:none}}

body.premium-site[data-view="query"] #app .qo-form .qo-input::placeholder {
    color: #607087;
}
body.premium-site[data-view="query"] #app .qo-form .qo-input:focus {
    border-color: var(--checkout-accent) !important;
    box-shadow: 0 0 0 3px #477acb22 !important;
}
body.premium-site[data-view="query"] #app .qo-title {
    color: #edf3fa !important;
}
body.premium-site[data-view="query"] #app :is(.qo-desc,.qo-help-text) {
    color: #afbdd0 !important;
}
body.premium-site[data-view="query"] #app .qo-form .qo-input.input-error {
    border-color: #bd475a !important;
    box-shadow: 0 0 0 3px #bd475a1f !important;
}
body.premium-site #app .qo-form .qo-submit:hover:not(:disabled) {
    background: var(--checkout-action-hover) !important;
}
body.premium-site[data-view="query"] #app :is(.qo-empty,.qo-skeleton) {
    max-width: 760px;
    margin: 0 auto 14px;
    background: var(--checkout-card);
    border: 1px solid var(--checkout-line);
    border-radius: 12px;
    color: var(--checkout-muted);
}
body.premium-site[data-view="query"] #app .qo-empty-text { opacity: 1; }
body.premium-site[data-view="query"] #app .qo-order {
    background: var(--checkout-card);
    border-color: var(--checkout-line);
    color: var(--checkout-ink);
}
body.premium-site[data-view="query"] #app :is(.qo-order-head,.qo-meta-item,.qo-key,.qo-delivery,.order-receipt,.qo-order .apt-delivery,.qo-count) {
    background: var(--checkout-soft);
    border-color: var(--checkout-line);
    color: var(--checkout-ink);
}
body.premium-site[data-view="query"] #app :is(.qo-order-label,.qo-meta-item dt,.qo-delivery-content,.order-receipt-copy p,.order-product-plan) {
    color: var(--checkout-muted);
}
body.premium-site[data-view="query"] #app :is(.qo-order-sn,.qo-meta-item dd,.qo-key-label,.qo-key-value,.qo-delivery-label,.order-product-name) {
    color: var(--checkout-ink);
}
body.premium-site[data-view="query"] #app :is(.qo-meta-item .qo-meta-price,.qo-delivery-content a) {
    color: var(--checkout-highlight);
}
body.premium-site[data-view="query"] #app .qo-status--done { background: #e4f5ed; color: #1b684b; }
body.premium-site[data-view="query"] #app .qo-status--pending { background: #fff1db; color: #7b531b; }
body.premium-site[data-view="query"] #app .qo-status--failed { background: #fcebee; color: #9e3344; }
body.premium-site[data-view="query"] #app :is(.qo-status--default,.qo-status--cancelled) {
    background: #edf2f9;
    color: var(--checkout-muted);
}
body.premium-site[data-view="query"] #app :is(.qo-key-copy,.order-receipt button) {
    background: var(--checkout-selection);
    border-color: #b7ceef;
    color: var(--checkout-highlight);
}
body.premium-site[data-view="query"] #app :is(.qo-key-copy,.order-receipt button):hover {
    background: #dfebfc;
    border-color: var(--checkout-accent);
}
body.premium-site[data-view="query"] #app .qo-order .apt-delivery {
    --apt-ink: var(--checkout-ink);
    --apt-copy: var(--checkout-muted);
    --apt-line: var(--checkout-line);
}

