:root{color-scheme:light;--ink:#18372d;--muted:#53685f;--green:#206145;--green-hover:#164b35;--surface:#fff;--background:#f4f7f3;--soft:#edf4ef;--line:#cddbd1;--warning:#775015;--warning-bg:#fff8e8;--focus:#174f98;--radius:.5rem}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--background);font-family:"Segoe UI",Tahoma,Arial,sans-serif;line-height:1.7;font-size:1rem}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-size:1.3rem;margin:0;font-weight:700}h2{font-size:1.35rem;margin-bottom:.5rem}h3{font-size:1.08rem;margin-bottom:.5rem}p{margin-bottom:.75rem}a{color:var(--green);text-underline-offset:.2em;overflow-wrap:anywhere}button,summary{cursor:pointer}button{min-height:2.75rem;border:1px solid var(--green);border-radius:var(--radius);padding:.55rem 1rem;background:var(--green);color:#fff;font-weight:600;white-space:normal;overflow-wrap:anywhere;max-width:100%}button:hover{background:var(--green-hover);border-color:var(--green-hover)}button:disabled{cursor:not-allowed;background:#e5ebe6;border-color:var(--line);color:#627568}.secondary{background:var(--surface);color:var(--green)}.secondary:hover{background:var(--soft)}.quiet{background:transparent;border-color:transparent;color:var(--green);padding-inline:.5rem}.quiet:hover{background:var(--soft);border-color:transparent}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}h2:focus{outline:none}h2:focus-visible{outline:3px solid var(--focus)}.skip-link{position:fixed;top:.5rem;right:.5rem;z-index:5;padding:.5rem 1rem;background:white;transform:translateY(-180%)}.skip-link:focus{transform:none}.site-header{background:var(--surface);border-bottom:2px solid var(--green)}.header-inner{width:min(100% - 2rem,66rem);margin:auto;padding:1rem 0;display:flex;align-items:center;gap:1rem;justify-content:space-between}.brand-note{color:var(--muted);font-size:.875rem}.page{width:min(100% - 2rem,66rem);margin:1rem auto 2rem;min-width:0}.session-nav{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.75rem}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.25rem;min-width:0}.login{max-width:38rem;margin:2rem auto}.service-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.5rem .75rem;margin-bottom:1rem;background:var(--soft);border:1px solid var(--line);border-radius:var(--radius)}.service-bar p{margin:0;font-size:.875rem;overflow-wrap:anywhere}.service-bar button{flex-shrink:0;font-size:.875rem}.notice{padding:.75rem 1rem;background:var(--warning-bg);color:var(--warning);border:1px solid #e3cea5;border-radius:var(--radius);margin-bottom:1rem;white-space:pre-wrap;overflow-wrap:anywhere}.notice:empty{display:none}.hint,.optional{font-size:.875rem;color:var(--muted)}.hint{margin-bottom:.75rem}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.record-list,.offer-list,.evidence-list{list-style:none;margin:0;padding:0}.record-list>li{border-top:1px solid var(--line);padding:1rem 0}.record-list>li:first-child{border-top:0}.record-row{display:flex;justify-content:space-between;align-items:center;gap:1rem}.record-row>div{min-width:0}.record-row p:last-child{margin-bottom:0}.record-title{overflow-wrap:anywhere;unicode-bidi:plaintext}.record-row button{flex-shrink:0}.empty-state{padding:1rem;color:var(--muted);background:var(--soft);border-radius:var(--radius)}.empty-state p:last-child{margin:0}.more{margin:1rem auto 0;display:block}summary{min-height:2.75rem;display:list-item;padding:.6rem .25rem;color:var(--green);font-weight:600}details>summary::marker{color:var(--green)}.add-product{border-top:1px solid var(--line);margin-top:1rem;padding-top:.5rem}.add-product>summary{font-size:1.05rem}.advanced{border-top:1px solid var(--line);margin:1rem 0;padding-top:.25rem}.advanced p:last-child{margin-bottom:0}.advanced .hint{overflow-wrap:anywhere;white-space:pre-wrap}.admin-settings{margin-top:1.5rem;color:var(--muted);font-size:.875rem}.admin-settings summary{color:var(--muted)}label{display:block;font-weight:600;margin:.75rem 0 .375rem}input:not([type=checkbox]),textarea,select{width:100%;min-height:2.75rem;border:1px solid #9eb4a5;border-radius:.375rem;background:var(--surface);color:var(--ink);padding:.625rem .75rem}textarea{resize:vertical;min-height:6rem;line-height:1.65}input::placeholder,textarea::placeholder{color:#64796c;opacity:1}input:focus,textarea:focus,select:focus{border-color:var(--focus)}form>.hint,.field-grid .hint{margin-top:.25rem}.field-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0 1rem}.field-grid>div{min-width:0}.product-summary{margin:.75rem 0 1rem;overflow-wrap:anywhere}.product-summary .product-name{font-size:1.2rem;font-weight:700}.product-summary p{white-space:pre-wrap;unicode-bidi:plaintext}.history-heading{margin-top:2rem}.range-note{font-size:.95rem;margin:.75rem 0;color:var(--muted)}.consent{display:flex;gap:.75rem;align-items:flex-start;font-weight:400;background:var(--soft);padding:1rem;border-radius:var(--radius);margin:1.25rem 0}.consent input{width:1.25rem;height:1.25rem;flex-shrink:0;margin:.25rem 0 0;accent-color:var(--green)}.actions{display:flex;flex-wrap:wrap;gap:.75rem}.results-actions{margin-bottom:1rem}.progress{padding:1rem;background:var(--soft);border-radius:var(--radius);margin-bottom:1rem}.progress p:last-child{margin-bottom:0}.progress ul{padding-right:1.25rem;margin:.5rem 0 0}.progress li{margin-top:.25rem;overflow-wrap:anywhere}.status-line{font-weight:600}.comparison-bar{border-top:1px solid var(--line);padding-top:1rem}.comparison-bar p{margin:.5rem 0 0}.offer-list{display:grid;gap:1rem;margin-top:1.25rem}.offer-card{padding:1rem;border:1px solid var(--line);border-radius:var(--radius)}.offer-card h3{margin:0}.offer-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.5rem}.message-count{font-size:.875rem;color:var(--muted)}.score-list{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0;margin:.75rem 0}.score{border:1px solid var(--line);border-radius:.375rem;background:var(--soft);padding:.375rem .625rem;font-size:.875rem;overflow-wrap:anywhere}.score strong{font-weight:700}.evidence-slot:empty,.preview-slot:empty{display:none}.evidence-slot{margin-top:1rem}.evidence-list>li{padding:1rem 0;border-top:1px solid var(--line)}.evidence-list h4{margin:0 0 .375rem;font-size:1rem}.evidence-list .actions{margin-top:.75rem}.preview-slot{margin-top:.75rem;background:#f8faf7;border:1px solid var(--line);border-right:3px solid var(--green);border-radius:.375rem;padding:1rem}.message-excerpt{white-space:pre-wrap;overflow-wrap:anywhere;unicode-bidi:plaintext;margin:0;line-height:1.85}.preview-slot .hint{margin:.75rem 0 0}.message-link{display:inline-flex;align-items:center;min-height:2.75rem;padding:.5rem .25rem}.technical{font-size:.8rem}.technical code{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;direction:ltr;unicode-bidi:isolate}.page-footer{width:min(100% - 2rem,66rem);margin:0 auto 1.5rem;color:var(--muted);font-size:.8rem;line-height:1.8}
@media(min-width:768px){.page{margin-top:1.5rem}.panel{padding:1.5rem}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#period{max-width:22rem}.offer-list{grid-template-columns:repeat(2,minmax(0,1fr))}.offer-card:has(.evidence-slot:not(:empty)){grid-column:1/-1}}
@media(max-width:480px){.header-inner,.page,.page-footer{width:calc(100% - 1.5rem)}.brand-note{display:none}.panel{padding:1rem}.service-bar{align-items:flex-start;gap:.25rem}.service-bar button{max-width:6rem}.record-row{align-items:flex-start;flex-direction:column;gap:.5rem}.record-row button{width:100%}.offer-heading{flex-direction:column;gap:.25rem}.actions>button{flex:1 1 9rem}.consent{padding:.75rem}}
.keyword-items{display:flex;flex-wrap:wrap;gap:.5rem;min-height:3rem;padding:.75rem;border:1px solid var(--line);border-radius:var(--radius)}.keyword-item,.keyword-entry{display:flex;gap:.5rem;align-items:center}.keyword-item{background:var(--soft);padding:.5rem;border:1px solid var(--line);border-radius:var(--radius)}.keyword-item{max-width:100%;border-radius:999px}.keyword-item input{flex:0 1 auto;min-width:0;margin:0;border:0;background:transparent;padding:.35rem}.keyword-entry input{flex:1;min-width:0;margin:0}.keyword-remove{min-width:2.75rem;min-height:2.75rem;padding:.25rem;font-size:1.4rem}.keyword-item button,.keyword-entry button{flex-shrink:0}.keyword-ai{margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--line)}.generation-note{padding:.75rem 1rem;background:var(--warning-bg);color:var(--warning);border:1px solid #e3cea5;border-right:3px solid var(--warning);border-radius:var(--radius);font-weight:600}
.session-nav{flex-wrap:wrap}.session-nav button[aria-current=page]{background:var(--green);color:white;border-color:var(--green)}#settings-status li{padding:.8rem 0}#ranking-picker label{display:flex;align-items:center;gap:.75rem;font-weight:400}#review-texts>li{padding:1.25rem;border:1px solid var(--line);border-radius:var(--radius);margin:1rem 0}#review-texts select{max-width:20rem}#library-title{font-size:1.15rem}#home-panel:has(#product-entry[hidden]) .history-heading{margin-top:0}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.skip-link{width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.skip-link:focus{width:auto;height:auto;clip-path:none;overflow:visible;white-space:normal}
.record-row h4{margin:0 0 .5rem;font-size:1rem}.history-queries,.history-range{overflow-wrap:anywhere;unicode-bidi:plaintext;margin-bottom:.5rem}
.stored-photo{display:block;max-width:100%;height:auto;max-height:32rem;object-fit:contain}
.filter-card .search-limits{grid-template-columns:minmax(0,1fr)}.retention-help{border-top:1px solid var(--line);margin:.75rem 0;padding-top:.25rem}.retention-help summary{font-size:.875rem}.retention-help .hint{margin-top:.5rem}
.keyword-item input[type=text]{width:auto;max-width:100%}
.eyebrow,.nav-caption{font-size:.75rem;font-weight:700;letter-spacing:.025em;color:var(--green)}.eyebrow{display:block;margin-bottom:.5rem}.nav-help{font-size:.8rem;color:var(--muted);line-height:2.3;margin:1rem .5rem}.import-heading h2{font-size:1.65rem;line-height:1.5}.link-entry{padding:1.25rem;background:var(--soft);border:1px solid var(--line);border-radius:var(--radius)}.link-entry label{margin-top:0}.link-row{display:flex;gap:.75rem;align-items:stretch}.link-row input{flex:1;min-width:0}.link-row button{flex-shrink:0}.link-entry .hint{margin:.75rem 0 0}.import-preview{margin-top:1.25rem;border:1px solid var(--line);padding:1rem;border-radius:var(--radius)}.source-title{overflow-wrap:anywhere;unicode-bidi:plaintext;font-weight:600}.product-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(7rem,1fr));gap:.75rem;margin:1rem 0}.product-gallery img{display:block;width:100%;height:10rem;object-fit:contain;background:white;border:1px solid var(--line);padding:.5rem;border-radius:var(--radius)}.source-description{white-space:pre-wrap;overflow-wrap:anywhere}.source-facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:.5rem}.source-facts dt,.source-facts dd{margin:0;padding:.5rem;overflow-wrap:anywhere;border-bottom:1px solid var(--line)}.source-facts dt{font-weight:600}.loading-block{height:5rem;padding:1rem;background:var(--soft);color:var(--muted);margin:0}.setup-product{font-weight:600;border-bottom:1px solid var(--line);padding-bottom:1rem}.setup-grid{display:grid;gap:1.5rem;align-items:start}.query-editor{min-width:0}.query-editor .section-heading{flex-wrap:wrap}.filter-card{background:var(--soft);border:1px solid var(--line);padding:.75rem 1rem;border-radius:var(--radius)}.filter-limit{font-size:.8rem;border-top:1px solid var(--line);padding-top:1rem;margin-top:1rem}.filter-default{margin:0}.filter-card:has(details[open]) .filter-default{display:none}.range-note{background:var(--background);border:1px solid var(--line);border-radius:var(--radius);padding:1rem}.add-product[open]{padding-top:1rem}
@media(min-width:1024px){.header-inner,.page,.page-footer{width:min(100% - 3rem,82rem)}#app-panel{display:grid;grid-template-columns:11rem minmax(0,1fr);column-gap:1.5rem}#app-panel>.session-nav{grid-column:1;grid-row:1/span 8;flex-direction:column;justify-content:flex-start;align-items:stretch;position:sticky;top:1rem;align-self:start;padding:1rem .5rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}#app-panel>.session-nav button{text-align:right}#app-panel>:not(.session-nav){grid-column:2}.setup-grid{grid-template-columns:minmax(0,1fr) 16rem}.panel{padding:1.75rem}.service-bar{margin-bottom:1rem}.session-nav #logout{margin-top:2rem}}
@media(max-width:1023px){.nav-caption,.nav-help{display:none}}
@media(max-width:480px){.link-row{flex-direction:column}.link-entry{padding:.75rem}.import-heading h2{font-size:1.35rem}.product-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.source-facts{grid-template-columns:1fr}.source-facts dd{padding-top:0}.source-facts dt{border-bottom:0}.query-editor .section-heading button{width:100%}}
/* Compact product identity beside the editable search intent. */
.product-hero{display:flex;align-items:center;gap:18px;padding:16px;background:#f5f8fb;border-radius:16px;margin-bottom:20px}
.product-hero img{width:84px;height:84px;object-fit:contain;background:white;border-radius:12px;flex-shrink:0}
.product-hero h3{margin:0;overflow-wrap:anywhere}
.result-product{align-items:center;background:#f8fafc;border:1px solid var(--line)}
.result-product>div:last-child{min-width:0}.result-product h2{font-size:1.2rem;overflow-wrap:anywhere;line-height:1.7}.result-product p{margin-bottom:0}
.result-product-image{flex:0 0 96px;width:96px}.result-product-image img{display:block;width:96px;height:110px;padding:.5rem;border:1px solid var(--line)}
@media(max-width:480px){.result-product{gap:.75rem;padding:.75rem}.result-product h2{font-size:1rem}.result-product-image{flex-basis:64px;width:64px}.result-product-image img{width:64px;height:84px}}
.product-conditions{margin-bottom:8px}
.image-choice{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;font-weight:500}.image-choice input{width:1.25rem;height:1.25rem;accent-color:var(--green)}
.link-row{flex-wrap:wrap}
.link-row input{min-width:180px}
/* Channel-first reading: source identity above a small, readable message feed. */
.offer-list:has(.channel-card){display:flex;flex-direction:column;gap:1rem}
.channel-card{padding:0;overflow:hidden;border-radius:18px;box-shadow:0 4px 18px #173b2810}
.channel-card>.offer-heading{padding:1.25rem 1.25rem .5rem;background:var(--soft);margin:0;align-items:center;flex-wrap:wrap}
.channel-card .offer-heading h3{flex:1;min-width:10rem;font-size:1.2rem;overflow-wrap:anywhere;unicode-bidi:plaintext}
.channel-toggle{flex-shrink:0;font-size:.875rem}.channel-toggle[aria-expanded=true]{background:var(--green);color:white}
.channel-avatar{display:grid;place-items:center;border-radius:14px;background:var(--green);color:white;width:48px;height:48px;font-size:.75rem;font-weight:700;order:-1;flex-shrink:0}
.channel-meta{padding:0 1.25rem 1rem;margin:0;background:var(--soft)}
.channel-card>.score-list,.channel-card>.hint,.channel-card>.technical{margin:1rem 1.25rem}
.channel-card>.evidence-slot{margin:0;padding:.25rem 1.25rem 1.25rem}
.channel-message{position:relative;background:var(--surface);margin-top:1rem;border:1px solid var(--line)!important;border-radius:12px;padding:1rem!important}
.channel-message>.preview-slot{padding:0;border:0;background:transparent;margin-top:.75rem}
.channel-message .message-excerpt{font-size:1rem;line-height:1.9}
.channel-message .query-tag{display:inline-block;background:var(--soft);border-radius:999px;padding:.2rem .75rem;font-size:.8rem;color:var(--green)}
.channel-message .stored-photo{border-radius:12px;max-height:22rem;margin:.75rem auto}
.channel-message .technical{margin:.75rem 0 0}
.channel-message .actions{border-top:1px solid var(--line);padding-top:.5rem}
.assessment-decision{font-weight:700;margin:.5rem 0}.assessment-reasons{margin:.5rem 0;padding-inline-start:1.25rem}.assessment-reason{padding:0;margin:.2rem 0}.score>.hint:last-child{margin:.5rem 0 0;max-width:44rem}
@media(max-width:480px){.channel-card>.offer-heading{padding:1rem .75rem .5rem;flex-direction:row}.channel-card>.evidence-slot{padding:.25rem .75rem .75rem}.channel-meta{padding:0 .75rem .75rem}.channel-message{padding:.75rem!important}.channel-avatar{width:38px;height:38px}.channel-card .offer-heading h3{font-size:1.05rem;min-width:7rem}}
.channel-card>.messages-disclosure{border-top:1px solid var(--line);padding:1rem 1.25rem 1.25rem;background:var(--surface)}
.channel-card>.messages-disclosure .evidence-slot{margin:1rem 0 0}
.channel-card>.messages-disclosure.is-expanded{background:#fbfdfb}
@media(max-width:480px){.channel-card>.messages-disclosure{padding:.75rem}.channel-card>.messages-disclosure .evidence-slot{margin-top:.75rem}}
.query-statuses{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;margin:.75rem 0 0;padding:0}.query-status{display:flex;align-items:center;gap:.45rem;border:1px solid var(--line);border-radius:999px;background:var(--surface);padding:.38rem .7rem;font-size:.875rem;max-width:100%;unicode-bidi:plaintext}.query-status-term{overflow-wrap:anywhere}.query-status-label{border-radius:999px;background:var(--soft);color:var(--muted);padding:.12rem .45rem;white-space:nowrap}.query-status-running{border-color:#d9bd58}.query-status-running .query-status-label{background:#fff4c7;color:#735a00}.query-status-completed{border-color:#9dcead}.query-status-completed .query-status-label{background:#e5f5e9;color:#166534}.query-status-failed,.query-status-cancelled{border-color:#efb0b0}.query-status-failed .query-status-label,.query-status-cancelled .query-status-label{background:#fff0f0;color:#a11}
/* Buyer reference: quiet teal accents, compact keyword chips and channel cards. */
:root{--ink:#203345;--muted:#64758a;--green:#087f79;--green-hover:#086762;--background:#f3f5f8;--soft:#edf7f5;--line:#dce4ed;--radius:.8rem}
.site-header{border-bottom:1px solid var(--line)}
.panel{box-shadow:0 2px 8px #20334505}
input:not([type=checkbox]),textarea,select{border-color:#bdcbd9;border-radius:.65rem}
.secondary{color:var(--ink);border-color:#c4d0de}
.keyword-plan{padding:1.25rem;border:1px solid var(--line);border-radius:1rem;background:white;margin-top:1.5rem}
.keyword-plan .section-heading{align-items:center}.keyword-plan h3{font-size:1.2rem;margin:0}
.keyword-plan .eyebrow{margin-bottom:.2rem}.keyword-plan>.hint{margin-top:.65rem}
.keyword-plan-toolbar{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:space-between;margin:1rem 0}
.keyword-plan-toolbar #keyword-count{margin:0;padding:.25rem .65rem;border:1px solid var(--line);background:var(--background);border-radius:.4rem;font-size:.8rem}
.keyword-plan-toolbar .keyword-entry{flex:1 1 17rem;max-width:30rem}
.keyword-items{border:0;padding:.35rem 0 .75rem;gap:.6rem;min-height:3rem}
.keyword-item{background:white;border-color:#c4d0de;padding:.1rem .55rem .1rem .2rem;gap:.25rem;transition:border-color .15s}
.keyword-item:focus-within{border-color:var(--green);box-shadow:0 0 0 2px #087f7915}
.keyword-item input[type=text]{min-height:2.75rem;font-weight:600;color:var(--ink);padding-inline:.35rem}
.keyword-remove{color:var(--muted);font-size:1.2rem;border-radius:50%}
.keyword-ai{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.25rem .75rem;margin-top:.5rem;padding-top:.75rem}
.keyword-ai>label:first-child{margin:.4rem 0}.keyword-ai>#keyword-provider{max-width:20rem;justify-self:end}
.keyword-ai>.image-choice,.keyword-ai>.hint,.keyword-ai>.consent{grid-column:1/-1}
.keyword-ai>.image-choice{margin-bottom:0}.keyword-ai>.hint{margin-bottom:.25rem}
.keyword-plan .generation-note{margin:1rem 0 0;font-weight:400;font-size:.8rem;border:0;border-top:1px solid var(--line);background:transparent;border-radius:0;padding:1rem 0 0;color:var(--warning)}
.offer-list:has(.channel-card){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));align-items:start;gap:1rem}
.channel-card{display:flex;flex-direction:column;align-self:stretch;padding:1rem;border:1px solid var(--line);border-radius:.85rem;background:#fffefa;box-shadow:0 2px 5px #20334504;min-width:0}
.channel-card:has(.evidence-slot:not(:empty)){grid-column:auto}
.channel-card:has(.messages-disclosure.is-expanded){grid-column:1/-1;background:white}
.channel-card>.offer-heading{display:grid;grid-template-columns:3rem minmax(0,1fr) auto;align-items:start;gap:.35rem .5rem;padding:0;background:transparent;margin-bottom:.85rem}
.channel-card .offer-heading h3{grid-column:2;grid-row:1;font-size:.95rem;min-width:0;line-height:1.65}
.channel-card .channel-avatar{grid-column:1;grid-row:2;justify-self:center;order:0;width:2rem;height:1.85rem;border-radius:.45rem;background:#e9f6f3;color:var(--green);border:1px solid #c9e7e1;font-size:.75rem}
.channel-card .message-count{grid-column:2;grid-row:2;justify-self:start;align-self:center;margin-top:0;border:1px solid var(--line);background:white;padding:.12rem .55rem;border-radius:999px;font-size:.75rem}
.channel-score-summary{grid-column:3;grid-row:1/3;text-align:center;min-width:3.75rem;max-width:5rem}
.channel-score-label{display:block;font-size:.65rem;color:var(--muted);line-height:1.5}
.channel-score-value{display:block;font-size:1.5rem;color:var(--green);line-height:1.6;font-variant-numeric:tabular-nums}
.channel-card>.supplier-evaluation{padding:.85rem;border:1px solid var(--line);border-radius:.6rem;background:white;margin-bottom:.85rem}
.supplier-evaluation>.hint{font-size:.8rem;line-height:1.8;margin:0}.supplier-evaluation>.hint+.hint{margin-top:.5rem;color:var(--muted)}
.channel-card>.channel-meta{background:transparent;padding:0;margin:0 0 1rem}
.channel-meta-label{font-size:.7rem;font-weight:600;margin:0 0 .35rem}.query-tags{display:flex;flex-wrap:wrap;gap:.3rem}
.query-tags .query-tag{display:inline-block;padding:.1rem .5rem;border-radius:.35rem;background:#eef2f6;color:var(--muted);font-size:.75rem;overflow-wrap:anywhere}
.channel-trust-note{font-size:.7rem;margin:.6rem 0 0;color:var(--muted)}
.channel-card>.messages-disclosure{padding:.6rem 0 0;border-top:1px solid var(--line);margin-top:auto;background:transparent}
.channel-toggle{width:100%;border-radius:.6rem}
.channel-card>.technical{margin:.35rem 0 0;padding:0;border-top:0;font-size:.7rem}
.channel-card>.technical>summary{min-height:2rem;font-size:.7rem;color:var(--muted);padding:.3rem}
.channel-card>.hint,.channel-card>.score-list{margin:.5rem 0 1rem}
#results-panel>.progress:has(#message-evaluation-status){border:1px solid #c9e7e1;background:#f1faf7}
#ranking-panel{padding:.7rem .9rem;margin:.75rem 0;border:1px solid var(--line);border-radius:.8rem;background:#fafbfd}
.ranking-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;margin-bottom:.3rem}.ranking-heading h3{margin:0;font-size:.95rem}.ranking-heading button{font-size:.75rem;min-height:32px;padding:.2rem .4rem}
.ranking-toolbar{display:grid;grid-template-columns:minmax(8rem,10rem) minmax(7rem,9rem) minmax(0,1fr) auto;gap:.5rem .8rem;align-items:end}.ranking-toolbar>div{min-width:0}.ranking-toolbar label{font-size:.75rem;margin:0 0 .2rem}.ranking-toolbar input:not([type=checkbox]),.ranking-toolbar select{min-height:38px;padding:.4rem .6rem;font-size:.85rem}.ranking-toolbar #ranking-create{min-height:38px;padding:.4rem 1rem;font-size:.85rem}.ranking-toolbar .followup-preview{display:flex;align-items:center;gap:.35rem;min-height:38px}.ranking-toolbar #ranking-preview{font-size:.8rem;line-height:1.5;margin:0;flex:1}.ranking-toolbar #ranking-preview-refresh{font-size:.75rem;min-height:32px;padding:.2rem .35rem;flex-shrink:0}
#ranking-panel .ranking-send-note{margin:.45rem 0 0;font-size:.75rem;color:var(--muted)}#ranking-panel #ranking-note{margin:.4rem 0 0;font-size:.8rem;color:var(--warning)}#ranking-note:empty,#evaluation-status:empty,#evaluation-resume:empty{display:none}.ranking-help{margin-top:.15rem}.ranking-help>summary{min-height:28px;padding:.1rem 0;font-size:.75rem;font-weight:400}.ranking-help[open]>summary{margin-bottom:.4rem}.ranking-help .hint{font-size:.8rem;margin:.4rem 0}.ranking-help .hint:last-child{margin-bottom:0}#ranking-panel .consent{margin:.6rem 0;padding:.6rem;font-size:.8rem}
@media(max-width:900px){.ranking-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.ranking-toolbar .followup-preview{grid-column:1/-1;grid-row:2}.ranking-toolbar #ranking-create{grid-column:3;grid-row:1}}
@media(max-width:480px){#ranking-panel{padding:.65rem}.ranking-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.ranking-toolbar #ranking-create{grid-column:1/-1;grid-row:3}.ranking-toolbar .followup-preview{flex-wrap:wrap}.ranking-toolbar #ranking-preview{flex-basis:75%}.ranking-heading{gap:.2rem}.ranking-heading h3{font-size:.9rem}}
@media(min-width:1024px){
 .header-inner,.page,.page-footer{width:min(100% - 3rem,94rem)}
 #app-panel:has(#results-panel:not([hidden])){grid-template-columns:minmax(0,1fr)}
 #app-panel:has(#results-panel:not([hidden]))>.session-nav{grid-column:1;grid-row:auto;position:static;flex-direction:row;flex-wrap:wrap;padding:.5rem;gap:.5rem}
 #app-panel:has(#results-panel:not([hidden]))>.session-nav .nav-caption,#app-panel:has(#results-panel:not([hidden]))>.session-nav .nav-help{display:none}
 #app-panel:has(#results-panel:not([hidden]))>:not(.session-nav){grid-column:1}
 #app-panel:has(#results-panel:not([hidden]))>.session-nav #logout{margin:0;margin-inline-start:auto}
}
@media(max-width:600px){
 .keyword-plan{padding:1rem .75rem}.keyword-plan-toolbar{align-items:stretch}.keyword-plan-toolbar .keyword-entry{flex-basis:100%;max-width:none}
 .keyword-ai{grid-template-columns:minmax(0,1fr)}.keyword-ai>#keyword-provider{justify-self:stretch;max-width:none}
 .channel-card{padding:.85rem}.channel-card>.offer-heading{padding:0}.channel-card>.messages-disclosure{padding:.6rem 0 0}
}
/* Channel evidence stays in a keyboard-accessible modal above the result grid. */
.channel-dialog{width:min(56rem,calc(100vw - 2rem));max-height:88vh;padding:0;border:1px solid var(--line);border-radius:1rem;background:var(--surface);color:var(--ink);box-shadow:0 24px 80px #18334540;overscroll-behavior:contain}
.channel-dialog::backdrop{background:#162a3c88;backdrop-filter:blur(3px)}
.channel-dialog-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;background:var(--surface);border-bottom:1px solid var(--line)}
.channel-dialog-header h3{margin:0;overflow-wrap:anywhere}.channel-dialog>.evidence-slot{padding:0 1.25rem 1.25rem;margin:0!important}
.channel-card:has(.channel-dialog){grid-column:auto!important}.channel-card>.messages-disclosure.is-expanded{background:transparent}
#channels-per-page{max-width:12rem}
@media(max-width:480px){.channel-dialog{width:calc(100vw - 1rem);max-height:94vh}.channel-dialog-header{padding:.75rem}.channel-dialog>.evidence-slot{padding:0 .75rem .75rem}}

.final-evaluation{padding:.75rem;border:1px solid #9accc6;border-radius:.6rem;background:#ecf8f5;margin:.6rem 0}.final-score{font-weight:700;color:#096c63;margin-bottom:.3rem}.final-evaluation .hint:last-child{margin-bottom:0}
/* Keep the score in the heading; expand supporting assessments on demand. */
.rating-details{margin:.25rem 0 .65rem;border-block:1px solid var(--line);padding:.45rem 0;font-size:.82rem}
.rating-details>summary{cursor:pointer;color:var(--muted,#526479);font-weight:600;line-height:1.6}
.rating-initial{display:inline-block;margin-inline-start:.6rem;font-weight:400;color:var(--muted,#526479)}
.rating-details[open]>summary{margin-bottom:.55rem}
.rating-details .final-evaluation{padding:.5rem;margin:.35rem 0}
.rating-details .final-evaluation p,.rating-details .supplier-evaluation p{margin:.3rem 0}
.rating-details .score-list{gap:.35rem;margin:.4rem 0}
.rating-details .score{padding:.35rem .5rem;font-size:.8rem}
.rating-details .assessment-reasons,.rating-details .assessment-differences{padding-inline-start:1.2rem;margin:.4rem 0}
.channel-card .channel-meta{margin-top:.2rem}
.external-reason{overflow-wrap:anywhere;line-height:1.7;margin:.35rem 0}
.photo-progress-notice{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem 1rem;border:1px solid #c9e0dc;border-radius:12px;background:#f4faf8;color:var(--ink);padding:.65rem .85rem;margin-block:.65rem;white-space:normal}.photo-progress-summary{flex:1 1 360px;min-width:0}.photo-progress-heading{display:flex;align-items:center;gap:.65rem;font-size:.85rem}.photo-progress-heading span{font-size:.72rem;color:var(--muted)}.photo-progress-notice p{margin:.2rem 0;font-size:.78rem;line-height:1.5}.photo-progress-notice progress{display:block;width:100%;height:5px;accent-color:var(--green);margin:.35rem 0 0}.photo-progress-actions{display:flex;gap:.4rem;flex-wrap:wrap}.photo-progress-actions button{font-size:.75rem;padding:.4rem .6rem;min-height:32px}.photo-progress-notice #photo-download-message{flex-basis:100%;margin:0;color:var(--muted)}.photo-progress-notice[hidden],.photo-progress-notice progress[hidden],.photo-progress-notice p[hidden]{display:none}
.messages-disclosure{display:flex;gap:.5rem;flex-wrap:wrap}.messages-disclosure>.channel-toggle,.messages-disclosure>.channel-photos-toggle{flex:1;min-width:7rem}
.channel-photos{padding:0 1rem 1rem}.photo-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:1rem;align-items:start}.gallery-photo{border:1px solid var(--line);border-radius:12px;padding:.65rem;background:#fff;min-width:0}.gallery-photo .stored-photo{width:100%;height:260px;object-fit:contain;border-radius:8px}.gallery-photo .hint,.gallery-photo .message-link{font-size:.75rem;line-height:1.6}.photo-dialog{width:min(1100px,calc(100vw - 2rem))}
.channel-photo-slot{grid-column:1;grid-row:1;min-width:0;align-self:start}.channel-photo-slot:empty{display:none}.channel-photo{display:block;width:48px;height:48px;object-fit:cover;border-radius:50%;border:1px solid var(--line)}.channel-photo-slot .hint{font-size:.7rem;margin:.2rem 0}

/* Shared compact layout: keep actions and live status visible, disclose help. */
body{font-size:.9375rem;line-height:1.6}h2{font-size:1.2rem}h3{font-size:1rem}p{margin-bottom:.55rem}button{min-height:40px;padding:.4rem .8rem;font-size:.875rem}input:not([type=checkbox]),select{min-height:40px;padding:.45rem .65rem}textarea{min-height:5rem;padding:.55rem .65rem}label{font-size:.85rem;margin:.55rem 0 .25rem}.hint{font-size:.8rem;margin-bottom:.5rem}summary{min-height:34px;padding:.35rem .1rem;font-size:.85rem}.help-details{margin:.3rem 0}.help-details>summary{font-size:.78rem;font-weight:400;color:var(--muted);min-height:30px;padding:.2rem 0}.help-details .hint{margin:.35rem 0}.advanced{margin:.65rem 0;padding-top:.15rem}.panel{padding:1rem}.header-inner{padding:.65rem 0}.page{margin-top:.7rem}.page-footer{margin-bottom:.8rem}.eyebrow{margin-bottom:.2rem}.history-heading{margin-top:1.1rem}.section-heading{gap:.65rem;align-items:center}.section-heading .hint{margin-bottom:.35rem}
#app-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:0}#app-panel>.session-nav,#app-panel:has(#results-panel:not([hidden]))>.session-nav{grid-column:1;grid-row:auto;position:static;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;padding:.4rem;gap:.3rem;margin-bottom:.6rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}#app-panel>:not(.session-nav){grid-column:1}.session-nav .nav-caption,.session-nav .nav-help{display:none}.session-nav button{padding:.4rem .7rem}.session-nav #logout{margin:0;margin-inline-start:auto;font-size:.8rem}.notice{padding:.55rem .8rem;margin-bottom:.6rem;font-size:.85rem}.service-bar{padding:.4rem .65rem;margin-bottom:.6rem;gap:.6rem}.service-bar p,.service-bar button{font-size:.8rem}.service-bar button{min-height:34px;padding:.3rem .5rem}
.import-heading h2{font-size:1.35rem}.link-entry{padding:.8rem}.link-row{gap:.5rem}.link-entry .hint{margin-top:.4rem}.import-preview{margin-top:.75rem;padding:.8rem}.record-list>li{padding:.7rem 0}.record-row{gap:.7rem}.record-row h3,.record-row h4{font-size:.95rem;margin:0 0 .2rem}.record-row p{margin:0 0 .25rem}.record-row .hint{font-size:.78rem}.product-summary{margin:.5rem 0 .7rem}.product-summary .product-name{font-size:1.05rem}.product-gallery{gap:.5rem;margin:.65rem 0}.product-gallery img{height:8rem}.source-facts{gap:.3rem}.source-facts dt,.source-facts dd{padding:.35rem}.product-hero{gap:.75rem;padding:.75rem;border-radius:.75rem;margin-bottom:.8rem}.product-hero img{width:64px;height:72px}.result-product-image{flex-basis:72px;width:72px}.result-product-image img{width:72px;height:80px}.result-product h2{font-size:1.05rem;line-height:1.6}.result-product .hint{font-size:.78rem}.setup-grid{gap:.8rem}.setup-product{padding-bottom:.65rem}.product-conditions{margin-bottom:.2rem}.product-conditions textarea{min-height:5rem;height:5rem}.keyword-plan{padding:.8rem;margin-top:.7rem}.keyword-plan h3{font-size:1.05rem}.keyword-plan>.hint{margin-top:.4rem}.keyword-plan-toolbar{gap:.5rem;margin:.6rem 0}.keyword-items{gap:.4rem;padding:.25rem 0 .4rem;min-height:2.5rem}.keyword-item input[type=text]{min-height:36px;font-size:.875rem}.keyword-ai{gap:.25rem .65rem;margin-top:.35rem;padding-top:.4rem;border-top:1px solid var(--line)}.keyword-plan .generation-note{margin:.6rem 0 0;padding:.55rem 0 0;font-size:.78rem}.filter-card{padding:.55rem .75rem}.filter-limit{padding-top:.5rem;margin-top:.5rem}.range-note{padding:.6rem .75rem;margin:.6rem 0;font-size:.85rem}.consent{padding:.7rem;margin:.7rem 0;gap:.55rem;font-size:.85rem}.actions{gap:.5rem}.results-actions{margin-bottom:.6rem}.progress{padding:.65rem .8rem;margin-bottom:.65rem}.progress h3{font-size:.9rem;margin-bottom:.2rem}.progress p{font-size:.85rem;margin-bottom:.3rem}#results-panel>.progress:has(#message-evaluation-status){display:flex;align-items:baseline;flex-wrap:wrap;gap:.25rem 1rem}#message-evaluation-title,#message-evaluation-status{margin:0}.query-statuses{gap:.35rem;margin:.5rem 0 0}.query-status{font-size:.78rem;padding:.2rem .5rem}.offer-list{gap:.75rem;margin-top:.8rem}.channel-card{padding:.8rem}.channel-card>.offer-heading{margin-bottom:.5rem}.channel-card>.channel-meta{margin-bottom:.65rem}.channel-card .channel-score-value{font-size:1.3rem}.channel-dialog-header{padding:.65rem .9rem}.channel-dialog-header h3{font-size:1rem}.channel-dialog>.evidence-slot{padding:0 .9rem .9rem}.channel-message{margin-top:.65rem;padding:.8rem!important}.channel-message .message-excerpt{line-height:1.75}.rating-details>summary{min-height:30px;padding:.2rem 0}.channel-dialog .actions{gap:.4rem}
.preferences-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;align-items:start}.preferences-grid fieldset{min-width:0;margin:0;padding:.6rem .8rem .75rem;border:1px solid var(--line);border-radius:.7rem;background:#fafbfd}.preferences-grid legend{padding:0 .4rem;font-size:.9rem;font-weight:600}.preferences-grid .settings-general,.settings-save{grid-column:1/-1}.settings-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.settings-fields label{margin-top:.15rem}.settings-fields #channels-per-page{max-width:none}.preferences-grid .hint{margin:.35rem 0;font-size:.78rem}.preferences-grid .image-choice{margin:.1rem 0 .5rem;font-size:.85rem}.preferences-grid textarea{min-height:5rem;max-height:18rem}.settings-save{display:flex;justify-content:flex-start}.services-heading{margin:1rem 0 .5rem}.services-heading h3{margin:0}.services-heading button{min-height:34px}#settings-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}#settings-status li{padding:.55rem .65rem;border:1px solid var(--line);border-radius:.6rem;background:var(--soft);font-size:.8rem;overflow-wrap:anywhere}.review-toolbar{display:flex;gap:.65rem;align-items:end;flex-wrap:wrap;margin:.5rem 0}.review-toolbar>div{flex:1;min-width:min(100%,14rem)}#review-note{font-size:.85rem;margin:.5rem 0}#review-note:empty{display:none}#review-texts>li{padding:.8rem;margin:.7rem 0;border-radius:.7rem;display:grid;grid-template-columns:minmax(0,1fr) 12rem;gap:1rem;align-items:start}#review-texts>li>label{margin:0}#review-texts .message-excerpt{font-size:.95rem;line-height:1.8;margin:0}#review-seen{max-width:28rem}.login{max-width:32rem;margin:1.2rem auto}.login details{margin-top:.65rem}
@media(min-width:1024px){.setup-grid{grid-template-columns:minmax(0,1fr) 19rem}.header-inner,.page,.page-footer{width:min(100% - 3rem,94rem)}}
@media(max-width:760px){.preferences-grid{grid-template-columns:minmax(0,1fr)}.settings-fields{grid-template-columns:minmax(0,1fr)}#settings-status{grid-template-columns:repeat(2,minmax(0,1fr))}#review-texts>li{grid-template-columns:minmax(0,1fr);gap:.4rem}.session-nav #logout{margin-inline-start:0}.record-row{align-items:flex-start}.record-row button{flex-shrink:0}.link-row input{min-width:0;flex-basis:100%}.link-row button{flex:1}.product-hero{align-items:flex-start}}
@media(max-width:480px){button,input:not([type=checkbox]),select{min-height:44px}.page,.header-inner,.page-footer{width:calc(100% - 1rem)}.panel{padding:.75rem}.brand-note{display:none}.session-nav{gap:.15rem}.session-nav button{padding:.35rem .5rem;font-size:.8rem}.section-heading{flex-wrap:wrap}.keyword-plan{padding:.65rem}.keyword-plan .section-heading button{width:auto}.keyword-entry{gap:.35rem}#settings-status{grid-template-columns:minmax(0,1fr)}.review-toolbar>button{width:100%}.record-row{flex-wrap:wrap}.record-row>div{flex-basis:100%}.channel-message{padding:.65rem!important}.product-hero h2{font-size:.95rem}.preferences-grid fieldset{padding:.55rem}.photo-progress-actions button{min-height:40px}}

/* Message reading and the cached-photo gallery share one compact dialog shell. */
.channel-dialog{width:min(64rem,calc(100vw - 2rem));max-height:90vh;background:#f6f8fb}.channel-dialog-header{padding:.65rem .9rem;gap:.65rem}.channel-dialog-header h3{min-width:0;font-size:1rem;line-height:1.5}.channel-dialog-header .dialog-close{flex-shrink:0;min-height:36px;padding:.3rem .65rem}.dialog-context{font-size:.75rem;color:var(--muted);margin:.55rem .9rem}.channel-message{background:white;border-color:#dce4ed!important}.message-heading{display:flex;justify-content:space-between;align-items:baseline;gap:.4rem;flex-wrap:wrap;padding-bottom:.5rem;border-bottom:1px solid var(--line);margin-bottom:.6rem}.message-heading h4{font-size:.9rem;margin:0}.message-heading .hint{margin:0;font-size:.75rem}.message-body{display:grid;grid-template-columns:minmax(0,1fr);gap:.8rem}.message-body:has(.message-media .photo-open){grid-template-columns:minmax(0,1fr) 15rem}.message-copy,.message-media{min-width:0}.message-copy>.preview-slot{padding:0;border:0;background:transparent;margin:.5rem 0}.message-copy>.preview-slot>.status-line{display:none}.message-copy .query-tags{gap:.25rem}.message-copy .query-tag{font-size:.7rem;padding:.1rem .5rem}.message-copy .actions{margin:.4rem 0 0;padding-top:.3rem}.message-copy .message-link{font-size:.8rem;min-height:32px;padding:.25rem 0}.message-body>.message-media{padding:0;border:0;background:transparent;margin:0}.message-media .stored-photo{max-height:240px;width:100%;object-fit:contain;margin:0;border-radius:.6rem}.message-media .hint{font-size:.72rem;line-height:1.5;margin:.3rem 0}.message-media .message-link,.message-media .photo-hide{font-size:.72rem;min-height:30px;padding:.2rem 0}.message-footer{display:flex;gap:.3rem 1rem;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:.65rem;padding-top:.3rem}.message-footer>.rating-details,.message-footer>.technical{border:0;margin:0;padding:0;min-width:0}.message-footer>details[open]{flex-basis:100%}.message-footer summary{font-size:.75rem;min-height:30px;padding:.2rem 0}.message-footer .advanced{margin:0}.photo-open{display:block;position:relative;width:100%;padding:0!important;background:#fff!important;border:1px solid var(--line)!important;border-radius:.65rem;overflow:hidden;cursor:zoom-in;min-height:0}.photo-open:disabled{cursor:wait}.photo-open-label{position:absolute;inset-inline-end:.35rem;bottom:.35rem;padding:.1rem .4rem;border:1px solid #ffffff80;border-radius:999px;background:#fffE;color:var(--ink);font-size:.68rem;font-weight:400}.photo-dialog{width:min(76rem,calc(100vw - 2rem))}.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;margin:.65rem 0 .35rem}.gallery-toolbar .hint{margin:0}.gallery-sizes{display:flex;gap:.25rem}.gallery-sizes button{font-size:.75rem;min-height:34px;padding:.3rem .55rem}.gallery-sizes button[aria-pressed=true]{border-color:var(--green);background:var(--soft);color:var(--green)}.gallery-status{margin:.3rem 0 .65rem;font-size:.75rem}.photo-gallery{grid-template-columns:repeat(auto-fill,minmax(min(100%,155px),1fr));gap:.65rem}.photo-gallery-large{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}.gallery-photo{position:relative;padding:.4rem;border-radius:.75rem}.gallery-photo .stored-photo{height:190px;border-radius:.55rem}.photo-gallery-large .stored-photo{height:330px}.gallery-score{display:block;font-size:.68rem;color:var(--green);margin-top:.3rem;font-weight:600}.gallery-photo .nearby-photo-note{margin:.3rem 0 0;font-size:.68rem;line-height:1.5}.gallery-photo .message-link{min-height:28px;font-size:.68rem;padding:.15rem 0}.photo-zoom{position:fixed;inset:0;width:min(70rem,calc(100vw - 1rem));max-width:none;max-height:96vh;padding:0;border:1px solid var(--line);border-radius:.8rem;background:#fff;color:var(--ink);overflow:auto}.photo-zoom::backdrop{background:#102331dd}.photo-zoom-header{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.5rem .75rem;border-bottom:1px solid var(--line);font-size:.85rem}.photo-zoom-header button{min-height:36px;padding:.3rem .6rem;font-size:.8rem}.photo-zoom-image{display:block;width:100%;height:calc(90vh - 60px);object-fit:contain;margin:0;background:#f5f7fa}
@media(max-width:640px){.channel-dialog{width:calc(100vw - 1rem);max-height:94vh}.channel-dialog>.evidence-slot{padding:0 .65rem .65rem}.channel-dialog-header{padding:.55rem .65rem}.dialog-context{margin:.45rem .65rem;font-size:.7rem}.message-body:has(.message-media .photo-open){grid-template-columns:minmax(0,1fr)}.message-media .stored-photo{max-height:220px}.message-heading h4{font-size:.85rem}.channel-photos{padding:0 .65rem .65rem}.photo-gallery{grid-template-columns:repeat(auto-fill,minmax(min(100%,130px),1fr));gap:.5rem}.photo-gallery .stored-photo{height:170px}.photo-gallery-large{grid-template-columns:minmax(0,1fr)}.photo-gallery-large .stored-photo{height:300px}.gallery-sizes button{min-height:40px}.photo-zoom-header button{min-height:44px}}
.message-media .photo-hide{margin-inline-start:.55rem}.message-media .message-link{vertical-align:middle}

/* Give the product reference enough room to identify its shape and details. */
.product-hero{--product-image-size:190px;align-items:center;gap:1.4rem;padding:1rem 1.2rem;background:linear-gradient(115deg,#f7fafc,#f0f8f6);border:1px solid #d8e7e4;border-radius:1rem;margin-bottom:1rem}.product-hero>img,.result-product-image img{display:block;width:var(--product-image-size);height:var(--product-image-size);max-width:100%;padding:.75rem;object-fit:contain;background:#fff;border:1px solid #e1e9ed;border-radius:.85rem;box-shadow:0 3px 12px #20334508;flex-shrink:0}.result-product-image{flex:0 0 var(--product-image-size);width:var(--product-image-size)}.product-hero>div:last-child{min-width:0}.product-hero h3,.result-product h2{font-size:1.15rem;line-height:1.75;margin:0;overflow-wrap:anywhere}.result-product .eyebrow{margin-bottom:.5rem;font-size:.75rem}.result-product .hint{font-size:.8rem;margin-top:.6rem;line-height:1.6}.setup-product{padding-bottom:1rem;font-weight:600}
@media(min-width:1400px){.product-hero{--product-image-size:208px}}
@media(max-width:760px){.product-hero{--product-image-size:160px;gap:1rem;padding:.9rem}.product-hero h3,.result-product h2{font-size:1.05rem}}
@media(max-width:480px){.product-hero{--product-image-size:170px;flex-direction:column;align-items:stretch;gap:.8rem;padding:.85rem}.product-hero>img,.result-product-image{align-self:center}.result-product-image{flex-basis:auto}.product-hero h3,.result-product h2{font-size:1rem;line-height:1.7}.result-product .eyebrow{margin-bottom:.3rem}.result-product .hint{font-size:.75rem;margin-top:.4rem}}

/* Follow the buying workflow: product, preparation, live work, then evidence. */
.session-nav .nav-secondary{margin-inline-start:auto}.session-nav #logout{margin-inline-start:0}
#app-panel>.service-bar{margin:.75rem 0 0;background:transparent;border:0;color:var(--muted);padding:.2rem .5rem}
.result-navigation{display:flex;gap:.35rem;flex-wrap:wrap;padding:.35rem;background:#f5f8fa;border:1px solid var(--line);border-radius:.7rem;margin-bottom:.85rem}
.result-navigation a{display:inline-flex;align-items:center;min-height:40px;padding:.4rem .8rem;text-decoration:none;font-size:.85rem;border-radius:.45rem}
.result-navigation a:first-child{background:#fff;border:1px solid var(--line);font-weight:600}.result-navigation a:hover{background:var(--soft)}
#search-monitor,#ranking-title,#offers-heading,#search-management,#result-title{scroll-margin-top:1rem}
.search-monitor{margin:.75rem 0 1rem}.search-monitor>.section-heading{margin-bottom:.45rem}.search-monitor h3{margin:0;font-size:.95rem}.search-monitor .results-actions{margin:0}
.monitor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;align-items:stretch}
.monitor-card,.monitor-grid>.photo-progress-notice{min-width:0;padding:.75rem;border:1px solid #d8e5e2;border-radius:.7rem;background:#f6faf9;margin:0}
.monitor-card>.eyebrow{font-size:.75rem;margin:0 0 .4rem}.monitor-card>.progress{padding:0;margin:0;border:0;background:transparent}.monitor-card .progress p{font-size:.8rem;line-height:1.65;margin:.25rem 0}.monitor-card .progress h3{font-size:.85rem;margin:0 0 .25rem}
.monitor-grid>.photo-progress-notice{display:flex;align-items:flex-start;align-content:flex-start;gap:.45rem}.monitor-grid .photo-progress-summary{flex-basis:100%}.monitor-grid .photo-progress-heading strong{font-size:.75rem;color:var(--green)}.monitor-grid .photo-progress-heading{flex-wrap:wrap;gap:.25rem .6rem}.monitor-grid .photo-progress-actions button{font-size:.72rem}
.monitor-grid .query-statuses{margin-top:.4rem}.monitor-grid .query-status{font-size:.72rem}.monitor-grid:not(:has(#photo-progress-notice:not([hidden]))){grid-template-columns:repeat(2,minmax(0,1fr))}
#ranking-panel{margin:.6rem 0 1rem}#ranking-panel #evaluation-status:empty,#ranking-panel #evaluation-resume:empty{display:none}#ranking-panel #evaluation-status{margin:.6rem 0 .2rem}#ranking-panel #comparison-settings{margin:.4rem 0;border:0}
.offers-heading{border-top:1px solid var(--line);padding-top:1rem;margin-top:1rem;align-items:center}.offers-heading h3{font-size:1.1rem;margin:0 0 .2rem}.offers-heading a,.search-management a{font-size:.8rem}.offers-heading .hint{margin:0}.search-management{margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--line)}.search-management h3{margin:0;font-size:.9rem}.search-management>.advanced{margin:.4rem 0}
.setup-grid{display:block}.intent-section{padding:.8rem;border:1px solid var(--line);border-radius:.75rem;background:#fafbfd;margin:.8rem 0}.intent-section h3{font-size:.9rem;margin:0}.intent-section h3 .optional{font-size:.75rem;font-weight:400;margin-inline-start:.4rem}.filter-card{margin:.8rem 0}.filter-card .search-limits{grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem 1rem}.filter-card #period{max-width:28rem}.filter-default{font-size:.75rem}.search-launch{margin-top:1rem;padding:1rem;background:#f3f8f6;border:1px solid #c7ded7;border-radius:.75rem}.search-launch h3{font-size:.95rem;margin:0}.search-launch .range-note{background:transparent;border:0;padding:0;margin:.5rem 0 .8rem;font-size:.8rem;line-height:1.85}.search-launch .actions{border-top:1px solid #d8e5df;padding-top:.75rem}.search-launch #search-start{min-width:12rem}
@media(max-width:900px){.monitor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.monitor-grid>.photo-progress-notice{grid-column:1/-1}.monitor-grid .photo-progress-summary{flex:1 1 280px}}
@media(max-width:600px){.monitor-grid,.monitor-grid:not(:has(#photo-progress-notice:not([hidden]))){grid-template-columns:minmax(0,1fr)}.monitor-grid>.photo-progress-notice{grid-column:auto}.result-navigation{gap:.2rem}.result-navigation a{flex:1 1 45%;justify-content:center;font-size:.78rem;min-height:44px;padding:.4rem}.search-monitor>.section-heading{flex-wrap:wrap}.search-monitor>.section-heading>h3{flex-basis:100%}.search-monitor .results-actions{flex-direction:row;flex-wrap:wrap;width:100%}.search-monitor .results-actions button{font-size:.78rem;min-height:40px}.offers-heading{flex-wrap:wrap;gap:.4rem}.filter-card .search-limits{grid-template-columns:minmax(0,1fr)}.search-launch{padding:.75rem}.search-launch .actions>button{flex:1;min-width:0!important}.session-nav .nav-secondary{margin-inline-start:0}.service-bar{flex-wrap:wrap}.intent-section{padding:.65rem}}

.video-preview-label{display:inline-block;margin:.35rem 0 .1rem;padding:.15rem .45rem;border:1px solid #d8def3;border-radius:.4rem;background:#f0f3ff;color:#3c4d80;font-size:.7rem;font-weight:600}
/* Compact settings editors keep long AI instructions out of the main scan. */
.preferences-grid .settings-inline{margin-top:.7rem;padding:.4rem 0 0;border:0;background:transparent}.prompt-editor{margin-top:.65rem;border-top:1px solid var(--line);padding-top:.5rem}.prompt-editor>summary{cursor:pointer;color:var(--accent);font-weight:600;font-size:.85rem}.prompt-editor textarea{width:100%;line-height:1.7}.prompt-contract{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.78rem;line-height:1.6;max-height:12rem;overflow:auto}.settings-save{align-items:center;gap:.5rem;flex-wrap:wrap}.settings-save .hint{flex-basis:100%}
.photo-score-form{flex:1 1 100%;margin:0}.photo-score-form label{font-size:.85rem}.photo-score-form input{width:5.5rem;min-width:0}.photo-score-form .actions{margin:.25rem 0}
