:root{font-family:'Segoe UI',Tahoma,Arial,sans-serif;color:#143243;background:#f4f7f9;line-height:1.65;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}a{color:#0e7080;text-decoration:none}a:hover{text-decoration:underline}.shell{max-width:1470px;width:calc(100% - 42px);margin:auto}.mast{background:#fff;border-bottom:1px solid #e5ebee}.mast-row{display:flex;align-items:center;justify-content:space-between;min-height:78px;gap:14px}.logo{display:flex;align-items:center;gap:12px;font-size:21px;color:#0c3744}.logo small{display:block;font-weight:400;font-size:12px;color:#718590}.logo-mark{width:44px;height:44px;background:#0d6d7b;color:#fff;border-radius:13px;display:grid;place-items:center;font-size:26px}.mast-side{display:flex;align-items:center;gap:8px;color:#687b86;font-size:13px}.status-dot{width:9px;height:9px;background:#159779;border-radius:50%}.version{font-size:11px;border-radius:20px;background:#eaf3f5;color:#1e7782;padding:3px 9px;margin-inline-start:10px}.app-layout{display:grid;grid-template-columns:225px minmax(0,1fr);gap:32px;padding-top:26px}.sidebar{align-self:start;position:sticky;top:20px}.side-title{color:#99a8af;font-size:12px;font-weight:700;padding:0 13px;margin-bottom:8px}.nav-btn{border:0;background:transparent;width:100%;text-align:right;display:flex;gap:12px;align-items:center;padding:12px 15px;margin:4px 0;border-radius:10px;color:#526c79;font-weight:600}.nav-btn.active{background:#e0f2f3;color:#075b69}.nav-btn:hover{background:#edf3f4}.side-note{background:#e9f0f3;border:1px solid #dbe7ec;border-radius:13px;padding:16px;margin-top:24px;font-size:12px;color:#627982}.side-note b{font-size:13px;color:#305566}.side-note p{margin:5px 0 0}.content{min-width:0;padding-bottom:45px}.sysnotice{padding:11px 16px;background:#e8f5f4;color:#14655f;border:1px solid #cce8e4;border-radius:12px;font-size:13px;margin-bottom:22px}.section{display:none}.section.active{display:block}.section-heading{margin-bottom:21px}.section-heading h1{font-size:29px;letter-spacing:-.5px;line-height:1.4;margin:3px 0 7px;color:#122e3c}.section-heading p{margin:0;color:#6c8190;font-size:14px}.eyebrow{font-size:12px;color:#1b8b89;font-weight:700}.panel{background:#fff;border:1px solid #e2eaf0;border-radius:17px;padding:25px 27px;box-shadow:0 2px 14px rgba(31,66,91,.035);margin-bottom:21px}.panel h2{font-size:19px;margin:0 0 6px}.field-title{display:block;font-weight:700;margin-bottom:9px}.query-bar{display:flex;align-items:center;border:1px solid #c7d6dd;border-radius:12px;height:57px;padding:5px 13px;background:#fff;gap:9px;margin-bottom:20px}.query-bar:focus-within{border-color:#0e8292;box-shadow:0 0 0 3px #d9f2f4}.query-bar input{width:100%;height:100%;border:0;outline:0;min-width:0;font-size:17px}.search-icon{font-size:30px;color:#7994a2}.subtle{background:#f0f7f8;border:0;color:#067587;font-size:13px;padding:7px 11px;border-radius:9px;white-space:nowrap}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:13px}.form-grid label{display:block;font-weight:700;font-size:13px}.form-grid input,.form-grid select{display:block;width:100%;min-width:0;border:1px solid #d5dfe5;border-radius:10px;background:#fff;color:#284653;padding:11px;margin-top:7px;font-weight:400}.form-grid input:focus,.form-grid select:focus{outline:2px solid #9ad7df}.search-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px}.search-options{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.check{display:flex!important;align-items:center;gap:7px;white-space:nowrap;font-size:13px}.check input{margin:0;accent-color:#0a7582}.hint{font-size:12px;color:#83959e}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 18px;border-radius:10px;border:1px solid transparent;font-weight:700;text-decoration:none!important;white-space:nowrap}.btn.primary{background:#086f80;color:#fff}.btn.primary:hover{background:#075667}.btn.secondary{background:#f0f6f8;border-color:#cbdfe6;color:#326070}.btn.secondary:hover{background:#e6f1f3}.btn.sm{font-size:12px;padding:7px 11px}.vision-panel .panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.vision-panel .panel-head p{margin:0 0 15px;color:#7c8e98;font-size:13px}.chip{border-radius:30px;padding:4px 11px;font-size:12px;white-space:nowrap}.chip.ai{background:#e9edfc;color:#5866b8}.image-area{display:flex;gap:16px;align-items:stretch}.image-controls{display:flex;align-items:center;gap:20px;flex:1;flex-wrap:wrap}.upload-box{flex:1;min-width:245px;border:1px dashed #a8c5ce;background:#f8fbfc;border-radius:13px;display:flex;align-items:center;gap:10px;padding:12px 18px;cursor:pointer}.upload-icon{font-size:23px;color:#158194}.upload-box b{font-size:13px}.upload-box small{font-size:11px;color:#82959e}.upload-box input{width:100%;max-width:210px;color:#768a95;font-size:11px}.image-ctas{display:grid;gap:4px}.image-ctas .hint{max-width:220px;margin:0}.preview-box{width:112px;height:100px;border:1px solid #dce6ec;border-radius:12px;flex:0 0 112px;overflow:hidden;background:#fff}.preview-box img{height:100%;width:100%;object-fit:contain}.identity{border:1px solid #c6e2df;border-radius:15px;background:#f6fbfa;padding:19px;margin-top:18px}.identity-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.identity h3{margin:0;font-size:17px}.identity-grid{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:11px}.identity-grid label{font-size:12px;font-weight:700;color:#4e6975}.identity-grid input{display:block;width:100%;border:1px solid #cde0e2;background:#fff;border-radius:8px;padding:9px;margin-top:5px;min-width:0;font-weight:400}.identity-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:15px}.identity .fine{color:#647e86;font-size:12px}.warning{background:#fff6e8;border:1px solid #ffe4b2;color:#795525;padding:12px;border-radius:9px;font-size:12px}.results-head{display:flex;align-items:center;justify-content:space-between;margin:27px 0 14px}.results-head h2{margin:0;font-size:22px}.results-head small{color:#8a9ba4;font-size:12px;font-weight:400}.results-info{background:#eaf4f6;border:1px solid #d2e6eb;border-radius:12px;padding:13px 16px;font-size:13px;color:#376674;margin-bottom:14px}.filter-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}.filter-tabs button{border-radius:50px;padding:7px 13px;font-size:12px;background:#edf3f5;border:1px solid #d9e6e9;color:#476573}.filter-tabs button.active{background:#0b7180;color:#fff;border-color:#0b7180}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.card{background:#fff;border:1px solid #e0e9ed;border-radius:16px;padding:17px;min-width:0;box-shadow:0 2px 13px #1b41590a}.offer-head{display:flex;gap:14px;align-items:start}.offer-pic{width:100px;height:100px;flex:0 0 100px;border:1px solid #eef1f2;border-radius:12px;object-fit:contain;background:#fff}.offer-title{font-size:16px;font-weight:800;line-height:1.55;margin:0 0 3px;overflow-wrap:anywhere}.offer-seller{font-size:13px;color:#79909b}.offer-price{color:#11766b;font-weight:800;font-size:24px;margin-top:6px;direction:ltr;text-align:right}.pill-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.tag{border-radius:30px;background:#edf4f6;color:#456676;font-size:11px;padding:4px 9px;white-space:nowrap}.tag.good{color:#0a785c;background:#dff3ea}.tag.bad{color:#a14341;background:#fce9e6}.tag.warn{color:#a06818;background:#fff0d6}.tag.subtle{color:#627681;background:#f0f4f5}.meta{font-size:12px;color:#81919b;margin-top:8px;overflow-wrap:anywhere}.card-actions{display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap;align-items:center;margin-top:15px}.card-actions .btn{font-size:12px;padding:7px 11px}.card input{border:1px solid #cddce2;border-radius:7px;padding:8px;max-width:100%}.card form{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}.card form label{font-size:12px;color:#55737e}.card form input{width:100%;display:block;margin-top:5px}.card form button{grid-column:1/-1}.mt{margin-top:24px}.muted{color:#71848d}.empty{color:#748a94;padding:28px;border:1px dashed #cfdee4;border-radius:12px;text-align:center;grid-column:1/-1}#toast{position:fixed;bottom:22px;left:22px;background:#163f4b;color:#fff;padding:14px 19px;max-width:450px;z-index:999;border-radius:12px;box-shadow:0 10px 28px #0002;display:none;font-size:13px}.footer{text-align:center;color:#9baab2;font-size:12px;padding:0 0 26px}code{direction:ltr;display:inline-block;background:#f1f5f7;padding:2px 6px;border-radius:5px}.tiny{font-size:12px}.nowrap{white-space:nowrap}@media(max-width:1150px){.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cards{grid-template-columns:1fr}.app-layout{gap:16px;grid-template-columns:190px minmax(0,1fr)}}@media(max-width:760px){.shell{width:calc(100% - 22px)}.mast-row{min-height:65px}.logo{font-size:16px}.mast-side{font-size:10px}.app-layout{display:block;padding-top:10px}.sidebar{position:static;display:flex;overflow:auto;gap:5px;padding:7px 0;margin-bottom:13px}.side-title,.side-note{display:none}.nav-btn{width:auto;flex-shrink:0;font-size:12px;padding:9px}.section-heading h1{font-size:23px}.panel{padding:16px}.form-grid,.identity-grid{grid-template-columns:1fr 1fr}.search-actions{align-items:stretch;flex-direction:column}.image-area,.image-controls{flex-direction:column}.preview-box{width:100%;height:155px}.query-bar input{font-size:15px}.query-bar .subtle{font-size:11px}.upload-box{min-width:0;flex-wrap:wrap}.offer-pic{width:82px;height:82px;flex-basis:82px}}@media(max-width:460px){.form-grid,.identity-grid{grid-template-columns:1fr}.offer-price{font-size:21px}.vision-panel .panel-head{flex-direction:column}.query-bar{flex-wrap:wrap;height:auto}.query-bar input{height:35px;flex:1}.query-bar .subtle{width:100%}}

/* v0.4: raw Google results display, provider ordering is preserved */
.raw-source-card .offer-head{margin-top:10px}
.raw-source-card .pill-row{margin-bottom:8px}

.raw-debug{white-space:pre-wrap;direction:ltr;text-align:left;word-break:break-word;border-radius:12px;padding:12px;background:#ecf2f5;color:#263c49;max-height:280px;overflow:auto;font-size:12px;margin-top:12px}

/* v0.5 UI: count, independent deletion per section, safe individual-selection controls */
.counter-pill{background:#e5f2f6;color:#155a6d;border-radius:99px;padding:4px 12px;font-size:13px;font-weight:700}
.bulk-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#f5f9fa;border:1px solid #cfe0e6;border-radius:14px;padding:12px 14px;margin:12px 0 18px}
.bulk-select,.select-row{display:inline-flex;align-items:center;gap:7px;color:#38596b;font-size:13px;cursor:pointer}
.select-row{width:max-content;padding:4px 9px;border-radius:6px;background:#eff6f8;margin-bottom:8px}
.btn.danger{background:#b83232;color:white;border:1px solid #b83232}
.btn.danger-outline{background:#fff;color:#ad2a2a;border:1px solid #c86868}
.btn.danger:hover,.btn.danger-outline:hover{filter:brightness(.92)}
.delete-single{margin:8px 0 0;display:block}
#serpapiAccount{margin-top:12px;min-height:34px}
@media(max-width:600px){.counter-pill{font-size:11px}.bulk-toolbar{gap:6px}}

/* v1.4: Frosted-glass Smart Search Overlay & Minimized Floating Dock */
.results-translucent{opacity:.38;filter:blur(3px);pointer-events:none;transition:opacity .35s ease,filter .35s ease}
.prl-overlay{position:fixed;inset:0;z-index:1200;background:rgba(12,38,49,.42);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:18px}
.prl-overlay[hidden]{display:none!important}
.prl-modal{width:min(620px,100%);background:#fff;border:1px solid #d5e6eb;border-radius:20px;box-shadow:0 24px 60px rgba(10,40,54,.24);padding:24px 26px;color:#143243;animation:prlFadeUp .25s ease}
@keyframes prlFadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.prl-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.prl-modal-head h3{margin:0;font-size:19px;color:#0c3744}
.prl-modal-tabs{display:flex;gap:8px;margin-bottom:16px;border-bottom:1px solid #e6eff2;padding-bottom:10px}
.prl-modal-tabs button{border:1px solid #d6e4e8;background:#f3f8fa;color:#3d5e6c;border-radius:99px;padding:7px 14px;font-size:13px;font-weight:700}
.prl-modal-tabs button.active{background:#086f80;color:#fff;border-color:#086f80}
.prl-progress-track{height:10px;background:#e6f0f3;border-radius:99px;overflow:hidden;margin:10px 0 8px}
.prl-progress-fill{height:100%;width:12%;background:linear-gradient(90deg,#086f80,#159779);border-radius:99px;transition:width .4s ease}
.prl-stats-line{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:13px;color:#466977;margin-bottom:14px}
.prl-tip-card{background:linear-gradient(135deg,#eef8f9,#f6fbf9);border:1px solid #c9e6e4;border-radius:14px;padding:15px 17px;margin:10px 0 16px;min-height:86px;display:flex;flex-direction:column;justify-content:center;gap:5px}
.prl-tip-tag{font-size:11px;font-weight:800;color:#0a785c;letter-spacing:.2px}
.prl-tip-text{font-size:14px;color:#183a4a;font-weight:600;margin:0}
.prl-checklist{list-style:none;padding:0;margin:6px 0 16px;display:grid;gap:9px}
.prl-checklist li{background:#f7fbfc;border:1px solid #dfecef;border-radius:11px;padding:10px 13px;font-size:13px;color:#234655}
.prl-checklist b{color:#086f80}
.prl-modal-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
.prl-dock{position:fixed;bottom:18px;right:18px;z-index:1100;width:min(460px,calc(100% - 36px));background:#0c3744;color:#fff;border-radius:16px;padding:13px 16px;box-shadow:0 14px 36px rgba(8,33,44,.28);display:grid;gap:8px}
.prl-dock[hidden]{display:none!important}
.prl-dock-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:700}
.prl-dock-tip{font-size:12px;color:#cbe6ec;margin:0}
.prl-dock .prl-progress-track{height:6px;background:rgba(255,255,255,.18);margin:2px 0}
.prl-dock .prl-progress-fill{background:#34d399}
.prl-dock-btns{display:flex;gap:8px;justify-content:flex-end}
.prl-dock-btns button{background:rgba(255,255,255,.14);color:#fff;border:0;border-radius:8px;padding:5px 10px;font-size:11px;font-weight:700}
.prl-dock-btns button:hover{background:rgba(255,255,255,.24)}

/* v1.5: Eye-catching shimmer + pulse on early-reveal CTA button & local market filter pill */
.prl-btn-shimmer{position:relative;overflow:hidden;box-shadow:0 0 0 0 rgba(8,111,128,.55);animation:prlPulseRing 1.8s infinite}
.prl-btn-shimmer::after{content:'';position:absolute;top:0;left:-120%;width:70%;height:100%;background:linear-gradient(110deg,transparent 15%,rgba(255,255,255,.52) 50%,transparent 85%);animation:prlShimmerSweep 2.1s infinite ease-in-out}
@keyframes prlShimmerSweep{0%{left:-120%}60%{left:140%}100%{left:140%}}
@keyframes prlPulseRing{0%{box-shadow:0 0 0 0 rgba(21,151,121,.55)}70%{box-shadow:0 0 0 11px rgba(21,151,121,0)}100%{box-shadow:0 0 0 0 rgba(21,151,121,0)}}
.market-filter-pill{display:inline-flex;align-items:center;gap:6px;border-radius:50px;padding:6px 13px;font-size:12px;font-weight:700;background:#e8f6f2;border:1px solid #9ad7c7;color:#0a6b55;cursor:pointer}
.market-filter-pill input{margin:0;accent-color:#086f80}

/* v1.8: Supabase Auth Modal & Header Credits Badge */
.mast-side{flex-wrap:wrap}
.auth-user-pill{display:inline-flex;align-items:center;gap:8px;background:#f4f9fa;border:1px solid #cfe0e6;border-radius:999px;padding:3px 10px 3px 5px}
.auth-user-pill[hidden],#openAuthBtn[hidden]{display:none!important}
.auth-email{font-size:12px;color:#154454;font-weight:600;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.auth-credits{background:#dff3ea;color:#0a785c}
.prl-auth-modal{width:min(460px,100%)}
.auth-form{display:grid;gap:13px}
.auth-form label{display:grid;gap:6px;font-size:13px;font-weight:700;color:#274754}
.auth-form input{width:100%;border:1px solid #c9dbe2;border-radius:10px;padding:11px 12px;background:#fff;color:#143243;font-weight:400}
.auth-form input:focus{outline:2px solid #9ad7df;border-color:#086f80}
.auth-msg{border-radius:10px;padding:10px 12px;font-size:13px;font-weight:600;background:#eef7f8;border:1px solid #c8e3e8;color:#145666}
.auth-msg.err{background:#fce9e6;border-color:#f2c1b9;color:#9b2c2c}
.auth-msg.ok{background:#dff3ea;border-color:#a8dfc6;color:#0a785c}

/* v1.8 Mobile Responsive UI/UX Polish (Desktop > 760px untouched) */
@media (max-width: 760px) {
 html,body{overflow-x:hidden;max-width:100%}
 .shell{width:calc(100% - 20px);max-width:100%}

 /* Header & Account Badges */
 .mast-row{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:10px;padding:10px 0;min-height:auto}
 .logo{font-size:17px;gap:10px}
 .logo-mark{width:38px;height:38px;font-size:22px;border-radius:11px;flex-shrink:0}
 .mast-side{width:100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:12px}
 .version{margin-inline-start:0}
 #extStatusPill,#searchCounter,#authCreditsBadge{font-size:11.5px;padding:5px 10px;max-width:100%}
 #authUserPill{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;padding:4px 8px;max-width:100%;border-radius:14px}
 .auth-email{max-width:165px;font-size:12px}
 #openAuthBtn,#logoutBtn{min-height:38px;padding:7px 12px;font-size:12px}

 /* Sidebar as horizontal touch-scrollable tab bar */
 .app-layout{display:block;padding-top:12px}
 .sidebar{position:static;display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:7px;padding:6px 2px 10px;margin-bottom:14px;border-bottom:1px solid #e2eaf0;white-space:nowrap}
 .sidebar::-webkit-scrollbar{display:none}
 .side-title,.side-note{display:none}
 .nav-btn{width:auto;flex:0 0 auto;white-space:nowrap;min-height:44px;padding:10px 14px;margin:0;font-size:13px;border:1px solid #dce6ec;background:#fff;border-radius:999px}
 .nav-btn.active{background:#086f80;color:#fff;border-color:#086f80}

 /* Inputs & Buttons: 44px touch target + >= 16px font to prevent iOS Safari auto-zoom */
 input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea{font-size:16px;min-height:44px}
 input[type="checkbox"]{width:18px;height:18px;min-height:0}
 .btn{min-height:44px;font-size:14px;padding:10px 16px}
 .btn.sm{min-height:40px;font-size:13px;padding:8px 12px}

 /* Search Form, Dropdowns & Image Upload */
 .panel{padding:15px 14px;border-radius:14px}
 .section-heading h1{font-size:21px}
 .query-bar{flex-wrap:wrap;height:auto;padding:10px 12px;gap:8px}
 .query-bar .search-icon{font-size:22px}
 .query-bar input{flex:1 1 200px;height:auto;min-height:44px;font-size:16px;padding:6px 0}
 .query-bar .subtle{flex:1 1 calc(50% - 4px);min-height:44px;font-size:13px;padding:10px 12px;text-align:center}
 .form-grid,.identity-grid{grid-template-columns:1fr;gap:12px}
 .form-grid > button[type="submit"],.search-actions .btn,.image-ctas .btn,.image-ctas select{width:100%;min-height:44px}
 .search-actions{flex-direction:column;align-items:stretch;gap:12px}
 .image-area,.image-controls{flex-direction:column;align-items:stretch;gap:12px}
 .upload-box{width:100%;min-width:0;flex-direction:column;align-items:flex-start;padding:14px;gap:8px}
 .upload-box input[type="file"]{width:100%;max-width:100%;min-height:44px;font-size:14px;padding:8px 0}
 .image-ctas{width:100%;display:grid;gap:10px}
 .image-ctas .hint{max-width:100%}
 .image-ctas label.fine{display:grid;gap:6px;font-size:13px;font-weight:700;color:#284653}
 .image-ctas select{border:1px solid #d5dfe5;border-radius:10px;background:#fff;color:#284653;padding:10px}
 .preview-box{width:100%;height:160px;flex:none}

 /* Product Result Cards & Bulk Toolbar */
 .results-head{flex-direction:column;align-items:stretch;gap:10px;margin:20px 0 12px}
 .results-head .card-actions{width:100%;margin-top:0}
 .filter-tabs{gap:6px}
 .filter-tabs button,.filter-tabs select,.market-filter-pill{min-height:40px;font-size:12.5px}
 .bulk-toolbar{flex-direction:column;align-items:stretch;gap:8px;padding:12px}
 .bulk-toolbar .btn{width:100%;min-height:44px}
 .cards{grid-template-columns:1fr;gap:12px}
 .card{padding:14px;overflow-wrap:anywhere}
 .offer-head{gap:12px}
 .offer-pic{width:78px;height:78px;flex:0 0 78px}
 .offer-title{font-size:15px}
 .offer-price{font-size:20px}
 .tag{white-space:normal;line-height:1.35}
 .card-actions{flex-direction:column;align-items:stretch;gap:8px}
 .card-actions .btn{width:100%;min-height:44px}
 .card form{grid-template-columns:1fr}
 #toast{left:12px;right:12px;bottom:14px;max-width:none}
 .prl-dock{left:12px;right:12px;bottom:12px;width:auto}

 /* Auth & Loading Modals on Mobile (keyboard-safe vertical scroll) */
 #prlAuthOverlay,.prl-overlay{padding:12px;align-items:flex-start;overflow-y:auto;-webkit-overflow-scrolling:touch}
 #prlAuthOverlay .prl-auth-modal,.prl-modal{width:94%;max-width:460px;margin:auto;padding:18px 16px;border-radius:16px;max-height:calc(100dvh - 24px);overflow-y:auto}
 .prl-modal-head{flex-wrap:wrap;gap:8px}
 .prl-modal-head h3{font-size:17px}
 .prl-modal-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .prl-modal-tabs button{min-height:44px;font-size:13px;text-align:center}
 .auth-form input{font-size:16px;min-height:44px;padding:11px 12px}
 .prl-modal-actions{flex-direction:column;align-items:stretch;gap:8px}
 .prl-modal-actions .btn{width:100%;min-height:44px}
}

@media (max-width: 460px) {
 #authUserPill{width:100%;justify-content:space-between}
 .auth-email{max-width:100%;flex:1 1 100%}
 #openAuthBtn{width:100%;min-height:44px}
 #logoutBtn{min-height:40px;padding:6px 14px}
 .query-bar .subtle{flex:1 1 100%;width:100%}
 .offer-head{flex-direction:column;align-items:stretch}
 .offer-pic{width:100%;height:150px;flex:none}
 .vision-panel .panel-head{flex-direction:column;align-items:flex-start}
 .identity-actions{flex-direction:column;align-items:stretch}
 .identity-actions .btn{width:100%}
 #prlAuthOverlay .prl-auth-modal,.prl-modal{width:95%;padding:16px 14px}
}

/* v2.7: Shared Cache Badge & Result Feedback Buttons */
.tag.cache-badge{display:inline-flex;align-items:center;gap:4px;margin-inline-start:10px;vertical-align:middle;background:#dcfce7;color:#166534;border:1px solid #86efac;font-weight:700;font-size:12px;padding:4px 11px}
.tag.cache-badge[hidden]{display:none!important}
.feedback-group{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.btn-fb{display:inline-flex;align-items:center;justify-content:center;gap:4px;border-radius:8px;padding:6px 10px;font-size:11.5px;font-weight:700;border:1px solid #d4e2e7;background:#f8fbfc;color:#395b69;transition:background .15s ease,border-color .15s ease,color .15s ease}
.btn-fb.ok:hover,.btn-fb.ok.is-active{background:#dcfce7;border-color:#4ade80;color:#166534}
.btn-fb.bad:hover,.btn-fb.bad.is-active{background:#fee2e2;border-color:#f87171;color:#991b1b}
.btn-fb.is-active{box-shadow:0 0 0 2px rgba(22,101,52,.12)}
.btn-fb.bad.is-active{box-shadow:0 0 0 2px rgba(153,27,27,.12)}
@media (max-width: 760px) {
 .feedback-group{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .btn-fb{min-height:40px;font-size:12.5px}
 .tag.cache-badge{margin-inline-start:0;margin-top:6px}
}

/* v2.9: Commercial SaaS UX Polish — Drag & Drop Upload, Shimmer Skeletons, Button Spinners, Animated Toasts & Micro-Interactions */
.btn{transition:background .16s ease,border-color .16s ease,transform .12s ease,box-shadow .16s ease}
.btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px rgba(12,55,68,.1)}
.btn:active:not(:disabled){transform:translateY(0)}
.btn:focus-visible,.filter-tabs button:focus-visible,.nav-btn:focus-visible,.btn-fb:focus-visible{outline:2px solid #0e8292;outline-offset:2px}
.btn.is-busy::before{content:'';width:14px;height:14px;border-radius:50%;border:2px solid currentColor;border-top-color:transparent;animation:prlSpin .7s linear infinite;flex-shrink:0}
@keyframes prlSpin{to{transform:rotate(360deg)}}

.card{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;animation:prlCardIn .24s ease both}
.card:hover{transform:translateY(-2px);border-color:#c4dce4;box-shadow:0 8px 22px rgba(20,50,67,.07)}
@keyframes prlCardIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.offer-price{color:#096c5a;font-variant-numeric:tabular-nums;letter-spacing:-.2px}
.filter-tabs button{transition:background .15s ease,border-color .15s ease,color .15s ease,transform .12s ease}
.filter-tabs button:hover:not(.active){background:#e2eef2;border-color:#bfd6de}

/* Modern Drag & Drop Upload Zone + Thumbnail Preview */
.upload-box{transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;flex-wrap:wrap;gap:12px}
.upload-box:hover{border-color:#0e8292;background:#f2f9fb}
.upload-box.is-dragover{border-color:#086f80;border-style:solid;background:#e4f5f7;box-shadow:0 0 0 4px rgba(8,111,128,.12)}
.upload-copy{display:grid;gap:3px;flex:1 1 200px;min-width:0}
.prep-status{display:inline-flex;align-items:center;gap:6px;width:max-content;margin-top:4px;font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:999px;background:#eaf4f6;color:#145666}
.prep-status[hidden]{display:none!important}
.prep-status.busy{background:#fff4dc;color:#8a5a12}
.prep-status.ready{background:#dcfce7;color:#166534}
.preview-box{position:relative;display:flex;flex-direction:column;width:142px;height:auto;min-height:112px;flex:0 0 142px;padding:6px;gap:5px;border:1px solid #cde0e6;box-shadow:0 3px 10px rgba(15,50,65,.06)}
.preview-box[hidden]{display:none!important}
.preview-box img{height:86px;width:100%;object-fit:contain;border-radius:8px;background:#f8fbfc}
.preview-clear{position:absolute;top:5px;left:5px;width:24px;height:24px;border-radius:50%;border:1px solid #d5e2e7;background:rgba(255,255,255,.94);color:#8f2d2d;font-size:15px;font-weight:800;line-height:1;display:grid;place-items:center;padding:0;box-shadow:0 2px 6px rgba(0,0,0,.1)}
.preview-clear:hover{background:#fee2e2;border-color:#f87171}
.preview-meta{display:grid;gap:1px;font-size:10.5px;color:#546f7c;text-align:center}
.preview-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;color:#1f4354}
.preview-size{color:#778e99;font-variant-numeric:tabular-nums}

/* Shimmer Skeleton Loading Cards */
.skel-status-row{display:flex;align-items:center;gap:9px;font-weight:700;color:#135465}
.inline-spinner{width:15px;height:15px;border-radius:50%;border:2px solid #9ad0d8;border-top-color:#086f80;animation:prlSpin .75s linear infinite;flex-shrink:0}
.skeleton-card{pointer-events:none;animation:none}
.skeleton-card:hover{transform:none;box-shadow:0 2px 13px #1b41590a}
.skel{background:linear-gradient(90deg,#edf3f6 25%,#f7fafb 50%,#edf3f6 75%);background-size:200% 100%;animation:prlShimmer 1.35s infinite linear;border-radius:8px}
@keyframes prlShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.skel-pill{height:22px;width:110px;border-radius:999px}
.skel-pill.sm{width:76px}
.skel-img{width:92px;height:92px;flex:0 0 92px;border-radius:12px}
.skel-col{flex:1;display:grid;gap:9px;padding-top:4px}
.skel-line{height:14px;width:100%}
.skel-line.lg{height:17px;width:88%}
.skel-line.md{width:54%}
.skel-line.price{height:24px;width:36%;margin-top:4px}
.skel-btn{height:32px;width:128px;border-radius:9px}
.skel-btn.sm{width:92px}

/* Smooth Slide + Fade SaaS Toast Notifications */
#toast.prl-toast{display:none;align-items:center;gap:10px;padding:13px 17px;border-radius:13px;border:1px solid rgba(255,255,255,.16);box-shadow:0 14px 34px rgba(10,36,48,.22);opacity:0;transform:translateY(14px) scale(.98);transition:opacity .24s ease,transform .24s ease}
#toast.prl-toast.is-visible{opacity:1;transform:translateY(0) scale(1)}
#toast.toast-ok{background:#0f4c5c;color:#fff}
#toast.toast-err{background:#9b2c2c;color:#fff}
#toast.toast-cache{background:#0b6e4f;color:#fff}
#toast.toast-reward{background:linear-gradient(135deg,#0b6e4f,#13795b);color:#fff;border-color:#86efac}
#toast.toast-info{background:#163f4b;color:#fff}
.toast-icon{width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.18);display:grid;place-items:center;font-size:12px;font-weight:800;flex-shrink:0}
.toast-text{line-height:1.5}

@media (max-width: 760px) {
 .preview-box{width:100%;flex:none;min-height:150px}
 .preview-box img{height:132px}
 .skel-img{width:76px;height:76px;flex-basis:76px}
}
@media (prefers-reduced-motion: reduce) {
 .card,.skel,.btn.is-busy::before,.inline-spinner,#toast.prl-toast{animation:none!important;transition:none!important}
}
