/* Product reports and collections. Workspace navigation lives in workspace.css. */
.poly-scan .product-collection{background:#fff;border-color:#e2e7e0;padding:24px}
.poly-scan .product-section-title{align-items:center}
.poly-scan .product-section-title h3{font:650 1.3rem/1.3 var(--sans);letter-spacing:-.025em;margin:0}
.poly-scan .product-tabs{gap:8px;margin:20px 0}
.poly-scan .product-tabs button{border-radius:100px;padding:11px 16px;min-height:44px}
.poly-scan .product-history-list,.poly-scan .product-recommendation-list{display:flex;flex-direction:column;gap:0;max-height:none;overflow:visible;margin:16px 0 20px}
.poly-scan .product-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto 16px;align-items:center;gap:18px;width:100%;min-height:112px;padding:20px 4px;background:#fff;color:#20372e;border:0;border-bottom:1px solid #e5e9e3;border-radius:0;text-align:left;white-space:normal;font:inherit}
.poly-scan .product-row:first-child{border-top:1px solid #e5e9e3}
.poly-scan .product-row:active{transform:none;background:#f0f5ee}
.poly-scan .product-row:focus-visible{outline:3px solid #a57721;outline-offset:3px;border-radius:8px;position:relative;z-index:1}
.poly-scan .product-row-copy{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}
.poly-scan .product-row-name{font:650 1rem/1.35 var(--sans);letter-spacing:-.015em}
.poly-scan .product-row-brand{color:#5c6c61;font-size:.86rem;line-height:1.4}
.poly-scan .product-row-source,.poly-scan .product-row-date{color:#657268;font-size:.73rem;line-height:1.45}
.poly-scan .product-row-arrow{color:#637a67;font:400 27px/1 var(--sans);text-align:right}
.poly-scan .product-picture.product-row-photo{width:72px;min-width:72px;height:82px;min-height:82px;align-self:center;padding:5px;background:#fafbf9;border:1px solid #e8ece5;border-radius:10px;box-shadow:none}
.poly-scan .product-picture.product-row-photo img{width:100%;height:70px;object-fit:contain}
.poly-scan .product-picture[data-image-kind="package-label-artwork"]{position:relative;padding-bottom:22px}
.poly-scan .product-picture.product-row-photo[data-image-kind="package-label-artwork"]{padding:5px 5px 30px}
.poly-scan .product-picture.product-row-photo[data-image-kind="package-label-artwork"] img{height:100%;min-height:0;max-height:100%}
.poly-scan .product-artwork-label{position:absolute;bottom:0;left:0;right:0;padding:4px 3px;background:#f2eadb;color:#624d27;border-radius:0 0 9px 9px;text-align:center;font-size:10px;font-weight:600;line-height:1.15}
.poly-scan .product-picture.product-hero-photo[data-image-kind="package-label-artwork"]{padding-bottom:40px}
.poly-scan .product-hero-photo .product-artwork-label{font-size:12px;padding:8px;border-radius:0 0 19px 19px}
.poly-scan .product-row-photo .product-photo-missing{font-size:.63rem;line-height:1.35}
.poly-scan .product-rating-badge{display:flex;align-items:center;gap:12px;min-width:0;color:#344b3a}
.poly-scan .product-rating-badge>strong{display:grid;place-items:center;flex-shrink:0;width:62px;height:62px;border-radius:17px;font:750 2.15rem/1 var(--sans);background:#edf0eb;color:#526058}
.poly-scan .product-rating-badge>span{font:650 1rem/1.4 var(--sans)}
.poly-scan .product-grade-meaning{font-weight:450;color:#526457;line-height:1.5}
.poly-scan .product-rating-badge.compact{flex-direction:column;gap:5px;max-width:94px;text-align:center}
.poly-scan .product-rating-badge.compact>strong{width:38px;height:38px;border-radius:11px;font-size:1.25rem}
.poly-scan .product-rating-badge.compact>span{font-size:.65rem;line-height:1.35;font-weight:550}
.poly-scan .grade-a>strong,.poly-scan .rating-step.grade-a{background:#d8eddf;color:#1c5732}
.poly-scan .grade-b>strong,.poly-scan .rating-step.grade-b{background:#e6efcf;color:#405b25}
.poly-scan .grade-c>strong,.poly-scan .rating-step.grade-c{background:#f8efc5;color:#715a15}
.poly-scan .grade-d>strong,.poly-scan .rating-step.grade-d{background:#f7e0c9;color:#895021}
.poly-scan .grade-e>strong,.poly-scan .rating-step.grade-e{background:#f7dbd3;color:#913d29}
.poly-scan .grade-unknown>strong{background:#f0f2ef;color:#647066}
.poly-scan .product-empty-state{margin:22px 0;padding:32px 24px;border:1px dashed #cbd8c8;border-radius:14px;background:#f7faf5;text-align:center}
.poly-scan .product-empty-state h4{font:650 1.05rem/1.4 var(--sans);margin:0 0 10px}
.poly-scan .product-empty-state p{max-width:450px;margin:auto;font-size:.9rem}
.poly-scan .product-overview{padding-top:8px}
.poly-scan .product-hero{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,1fr);gap:32px;align-items:start;margin:0 0 14px}
.poly-scan .product-picture.product-hero-photo{width:100%;min-width:0;min-height:280px;padding:24px;background:#fafbf9;border:1px solid #e6ebe2;border-radius:20px;align-self:start}
.poly-scan .product-hero-photo img{height:260px;width:100%;object-fit:contain}
.poly-scan .product-hero-photo .product-photo-missing{font-size:.9rem;max-width:160px}
.poly-scan .product-hero h3{font:650 clamp(1.4rem,3vw,2rem)/1.2 var(--sans);letter-spacing:-.035em;margin:0 0 12px;overflow-wrap:anywhere}
.poly-scan .product-hero-copy>.scan-eyebrow{font-size:.65rem;margin:0 0 10px}
.poly-scan .product-hero-copy>.muted{font-size:.9rem;line-height:1.5}
.poly-scan .product-rating-panel{margin-top:22px;padding-top:18px;border-top:1px solid #e0e7db}
.poly-scan .product-rating-label{font-size:.75rem;font-weight:650;color:#57705d;margin:0 0 10px!important}
.poly-scan .product-rating-scale{display:flex;gap:4px;margin:16px 0 10px;max-width:260px;align-items:center}
.poly-scan .rating-step{display:grid;place-items:center;flex:1;min-height:30px;border-radius:5px;font:600 .8rem/1 var(--sans);opacity:.65}
.poly-scan .rating-step.selected{min-height:38px;font-size:1.05rem;opacity:1;border:2px solid currentColor}
.poly-scan .product-rating-source,.poly-scan .product-rating-separation{font-size:.76rem!important;line-height:1.5!important;color:#5f6e63}
.poly-scan .product-rating-separation{border-top:1px solid #e5e9e1;padding-top:12px;margin-top:14px!important}
.poly-scan .product-rating-method{font-size:.78rem;line-height:1.6;color:#526457;margin-top:10px}
.poly-scan .product-rating-method summary{cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:3px;font-weight:550}
.poly-scan .product-rating-method p{font-size:.78rem;margin:7px 0 12px}
.poly-scan .product-rating-method a{display:inline-block;margin-bottom:10px;text-underline-offset:3px}
.poly-scan .product-grade-unavailable{font-size:.8rem!important;margin-top:12px!important}
.poly-scan .product-photo-credit{font-size:.7rem!important;margin:12px 0 18px!important}
.poly-scan .product-actions{padding:16px 0;margin:0 0 10px;border-top:1px solid #e0e7db;border-bottom:1px solid #e0e7db}
.poly-scan .product-actions button{min-height:44px;border-radius:10px;background:#fff}
.poly-scan .product-actions button[aria-pressed=true]{background:#e5efe1;border-color:#52754f;color:#25472b}
.poly-scan .product-nutrition{margin-top:28px;border:0;padding-top:0}
.poly-scan .product-nutrition>h4,.poly-scan .product-recommendations>h4{font:650 1.3rem/1.3 var(--sans);letter-spacing:-.025em;margin:0 0 14px}
.poly-scan .nutrition-group{margin:26px 0;border-top:1px solid #e2e7df}
.poly-scan .nutrition-group h5{font:650 1rem/1.4 var(--sans);margin:20px 0 6px;display:flex;align-items:center;gap:9px}
.poly-scan .nutrition-group h5:before{content:'';display:block;width:9px;height:9px;background:#7c897e;border-radius:50%}
.poly-scan .nutrition-group-watch h5:before{background:#ad6745}
.poly-scan .nutrition-group-favorable h5:before{background:#4f7b48}
.poly-scan .nutrition-group-note{font-size:.75rem!important;line-height:1.55!important;color:#667469;max-width:650px;margin-bottom:8px}
.poly-scan .nutrition-row{padding:0;border-bottom:1px solid #e7ebe3}
.poly-scan .nutrition-row summary{min-height:64px;align-items:center;padding:16px 2px;gap:6px 14px;font-size:.93rem}
.poly-scan .nutrition-row summary>strong{font-weight:650}
.poly-scan .nutrition-row summary>span:first-child:after{content:' +';margin-left:8px;color:#5e7861}
.poly-scan .nutrition-row[open] summary>span:first-child:after{content:' −'}
.poly-scan .nutrition-row>p{margin:0 2px 16px;font-size:.81rem;line-height:1.65;max-width:650px}
.poly-scan .nutrition-dv{margin-top:-2px;font-weight:550;font-size:.7rem}
.poly-scan .product-methodology summary,.poly-scan .product-additives>summary{min-height:44px;line-height:1.5;padding:8px 0}
.poly-scan .nutrition-row summary:focus-visible,.poly-scan .product-rating-method summary:focus-visible,.poly-scan .product-methodology summary:focus-visible,.poly-scan .product-additives summary:focus-visible{outline:3px solid #a57721;outline-offset:4px;border-radius:5px}
.poly-scan .product-recommendations{margin-top:30px;padding-top:24px;border-top:1px solid #dfe6da}
.poly-scan .product-recommendation-feed>h3{font:650 1.35rem/1.3 var(--sans);letter-spacing:-.025em}
.poly-scan .product-recommendation-feed>p{max-width:650px;font-size:.9rem}
.poly-scan .product-recommendation-context{font-size:.8rem!important;color:#5d7160;padding:12px 16px;background:#f1f6ed;border-radius:10px;overflow-wrap:anywhere}
.poly-scan .recommendation-feed-content>.product-recommendations{margin-top:18px;padding-top:0;border-top:0}
@media(hover:hover) and (pointer:fine){.poly-scan .product-row:hover{background:#f5f8f1}.poly-scan .product-row:hover .product-row-name{text-decoration:underline;text-underline-offset:3px}}
@media(max-width:600px){
  .poly-scan .product-collection{padding:18px 16px}
  .poly-scan .product-row{grid-template-columns:62px minmax(0,1fr) auto 10px;gap:12px;padding:17px 0;min-height:108px}
  .poly-scan .product-picture.product-row-photo{width:62px;min-width:62px;height:76px;min-height:76px;padding:4px}
  .poly-scan .product-row-photo img{height:66px}
  .poly-scan .product-row-name{font-size:.94rem}
  .poly-scan .product-row-brand{font-size:.78rem}
  .poly-scan .product-row-source,.poly-scan .product-row-date{font-size:.66rem}
  .poly-scan .product-rating-badge.compact{max-width:62px}
  .poly-scan .product-rating-badge.compact>span{font-size:.6rem}
  .poly-scan .product-rating-badge.compact>strong{width:34px;height:34px;font-size:1.1rem}
  .poly-scan .product-hero{grid-template-columns:105px minmax(0,1fr);gap:16px}
  .poly-scan .product-picture.product-hero-photo{min-height:150px;padding:8px;margin:0;border-radius:14px}
  .poly-scan .product-hero-photo img{height:134px}
  .poly-scan .product-hero-photo .product-photo-missing{font-size:.7rem}
  .poly-scan .product-hero h3{font-size:21px}
  .poly-scan .product-hero-copy>.scan-eyebrow{margin-bottom:8px}
  .poly-scan .product-rating-panel{margin-top:15px;padding-top:12px}
  .poly-scan .product-hero .product-rating-badge{gap:9px}
  .poly-scan .product-hero .product-rating-badge>strong{width:43px;height:43px;font-size:1.5rem;border-radius:12px}
  .poly-scan .product-hero .product-rating-badge>span{font-size:.78rem}
  .poly-scan .product-rating-scale{gap:3px;margin:12px 0 8px}
  .poly-scan .rating-step{min-height:25px;font-size:.68rem}
  .poly-scan .rating-step.selected{min-height:31px;font-size:.85rem}
  .poly-scan .product-rating-source,.poly-scan .product-rating-separation{font-size:.7rem!important}
  .poly-scan .product-rating-method{font-size:.7rem}
  .poly-scan .product-actions{gap:8px}
  .poly-scan .product-actions button{flex:1 1 calc(50% - 8px);padding:11px 10px;font-size:.78rem}
  .poly-scan .product-tabs button{flex:0 1 auto;font-size:.75rem;padding:10px 13px}
  .poly-scan .nutrition-row summary{font-size:.87rem}
  .poly-scan .product-empty-state{padding:26px 18px}
}
@media(max-width:360px){
  .poly-scan .product-row{grid-template-columns:50px minmax(0,1fr) 47px;gap:10px}
  .poly-scan .product-row-arrow{display:none}
  .poly-scan .product-picture.product-row-photo{width:50px;min-width:50px;height:66px;min-height:66px}
  .poly-scan .product-row-photo img{height:56px}
  .poly-scan .product-rating-badge.compact{max-width:47px}
  .poly-scan .product-row-name{font-size:.88rem}
  .poly-scan .product-hero{grid-template-columns:90px minmax(0,1fr);gap:12px}
  .poly-scan .product-hero h3{font-size:19px}
}

/* Each alternative keeps its product, evidence, intended use and trade-off together. */
.poly-scan .product-alternative{border:1px solid #dfe6da;border-radius:16px;padding:12px 20px 20px;margin:18px 0;background:#fbfcf9}
.poly-scan .product-alternative .product-row{background:transparent;border-bottom:1px solid #e0e7db;margin-bottom:16px}
.poly-scan .product-alternative-reason{font-size:.9rem!important;font-weight:550;line-height:1.65!important;color:#23452e}
.poly-scan .product-alternative-use,.poly-scan .product-alternative-tradeoff{font-size:.8rem!important;line-height:1.65!important;margin:12px 0!important}
.poly-scan .product-alternative-tradeoff{background:#f0f4eb;border-radius:8px;padding:12px 14px}
.poly-scan .product-alternative-source{font-size:.78rem;display:inline-flex;align-items:center;min-height:44px;text-underline-offset:3px}
@media(max-width:600px){.poly-scan .product-alternative{padding:8px 14px 14px}.poly-scan .product-alternative .product-row{padding:12px 0}.poly-scan .product-alternative-reason{font-size:.83rem!important}}

/* The app's central evidence feature has its own visual identity. */
.poly-scan .product-polyphenol-panel{margin:30px 0 36px;border:1px solid #b9cbbf;border-radius:22px;background:#f3f7f0;overflow:hidden;color:#203d31}
.poly-scan .polyphenol-panel-header{padding:26px 28px;background:#214e3d;color:#fff}
.poly-scan .polyphenol-panel-eyebrow{font:650 .66rem/1.5 var(--sans);letter-spacing:.15em;color:#c5e0ba;margin:0 0 10px}
.poly-scan .product-polyphenol-panel .product-polyphenol-heading{font:750 clamp(1.55rem,3vw,2rem)/1.15 var(--sans);letter-spacing:-.03em;color:#fff;border:0;padding:0;margin:0}
.poly-scan .polyphenol-panel-intro{font-size:.87rem;line-height:1.5;color:#e0ecdf;margin:12px 0 0}
.poly-scan .polyphenol-panel-body{padding:26px 28px;overflow-wrap:anywhere}
.poly-scan .polyphenol-evidence-overview{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;padding-bottom:24px;border-bottom:1px solid #cddace}
.poly-scan .polyphenol-summary-label{font-size:.72rem;font-weight:650;color:#4e6557;line-height:1.4;margin:0 0 8px}
.poly-scan .polyphenol-summary-value{display:block;font:650 1.12rem/1.3 var(--sans);letter-spacing:-.015em;color:#214e3d}
.poly-scan .polyphenol-amount{border-left:1px solid #c9d7c9;padding-left:24px}
.poly-scan .polyphenol-amount>.polyphenol-summary-value{color:#735a25}
.poly-scan .polyphenol-evidence-overview .scan-small{font-size:.78rem;color:#516458;margin-top:10px;line-height:1.55}
.poly-scan .polyphenol-matched-foods{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:12px 0 0}
.poly-scan .polyphenol-matched-foods li{font-size:.8rem;font-weight:650;background:#dfeada;color:#2f5038;border-radius:7px;padding:5px 10px;max-width:100%}
.poly-scan .polyphenol-compound-preview{padding:22px 0 0}
.poly-scan .polyphenol-reference-preview{display:grid;gap:10px;list-style:none;padding:0;margin:12px 0}
.poly-scan .polyphenol-reference-preview>li{background:#fff;border:1px solid #c2d2bf;border-radius:12px;padding:12px 16px;min-width:0}
.poly-scan .polyphenol-reference-link{display:block;text-align:left;background:transparent;border:0;border-radius:4px;padding:8px 0;min-height:44px;font:650 .9rem/1.45 var(--sans);color:#214e3d;text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}
.poly-scan .polyphenol-reference-link:hover{color:#143425}
.poly-scan .polyphenol-reference-link:focus-visible{outline:3px solid #967020;outline-offset:3px}
.poly-scan .polyphenol-reference-compounds{font-size:.84rem;line-height:1.65;margin:4px 0 8px;overflow-wrap:anywhere;color:#344e3e}
.poly-scan .polyphenol-reference-scope{font-size:.74rem;line-height:1.55;margin:8px 0;color:#526658}
.poly-scan .polyphenol-compound-preview>.scan-small{font-size:.74rem;line-height:1.55;color:#526658}
.poly-scan .product-polyphenol-panel .scan-label-details{padding-top:0;margin-top:22px;border-top:1px solid #ccd8c9}
.poly-scan .product-polyphenol-panel .scan-label-details summary,.poly-scan .polyphenol-processing summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:.85rem;font-weight:600;box-sizing:border-box}
.poly-scan .polyphenol-processing{border-top:1px solid #ccd8c9;border-bottom:1px solid #ccd8c9;margin-top:20px}
.poly-scan .polyphenol-processing>p{margin:0 0 16px;font-size:.84rem}
.poly-scan .product-polyphenol-panel .notice{background:#e4eddc;border-left-color:#708b54;font-size:.83rem;line-height:1.6;padding:16px 18px;margin:20px 0}
.poly-scan .product-polyphenol-panel .scan-ingredient-insight{background:#fff;border-color:#c8d7c4}
.poly-scan .product-polyphenol-panel .scan-compound-list li{background:#eff5eb;border:1px solid #dfe9d9}
.poly-scan .product-polyphenol-panel .scan-ingredient-insight>summary strong{font-size:1.02rem;color:#214e3d}
.poly-scan .product-polyphenol-panel summary:focus-visible{outline:3px solid #967020;outline-offset:3px;border-radius:5px}
.poly-scan .polyphenol-interpretation{margin:18px 0;font-size:.78rem;line-height:1.6}
@media(max-width:600px){
 .poly-scan .product-polyphenol-panel{margin:24px -4px 30px;border-radius:16px}
 .poly-scan .polyphenol-panel-header{padding:22px 18px}
 .poly-scan .polyphenol-panel-body{padding:20px 16px}
 .poly-scan .polyphenol-evidence-overview{grid-template-columns:1fr;gap:18px;padding-bottom:18px}
 .poly-scan .polyphenol-amount{border-left:0;border-top:1px solid #c9d7c9;padding:16px 0 0}
 .poly-scan .polyphenol-summary-value{font-size:1.05rem}
 .poly-scan .product-polyphenol-panel .scan-insight-body{padding:0 14px 16px}
 .poly-scan .product-polyphenol-panel .scan-ingredient-insight>summary{padding:16px 14px}
}

.poly-scan .product-photo-label-note{display:block;background:#f8f1e2;color:#6d5427;border-left:3px solid #a58447;padding:12px 14px;margin-top:12px;font-size:.8rem;line-height:1.6}
