/* Benchmarked reviews (Phase 7). Builds on account.css (fields, buttons,
   notices). Live kit colours only: text #191919, body #555555, muted
   #6B6B6B, border #E2E2E2, green #087443 for data and focus. Stars are
   decorative; every rating is also written out. Scoped to .bm-* classes. */
html body .bm-stars{position:relative;display:inline-block;width:max-content;justify-self:start;letter-spacing:2px;font-size:1rem;line-height:1;white-space:nowrap;vertical-align:middle;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;}
html body .bm-stars__track{color:#E2E2E2;}
html body .bm-stars__fill{position:absolute;left:0;top:0;overflow:hidden;white-space:nowrap;color:#F5B301;}
@media (forced-colors:active){html body .bm-stars__track{color:GrayText;}html body .bm-stars__fill{color:CanvasText;}}
html body .bm-review-headline{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;}
html body .bm-review-headline__value{font-weight:500;}

/* Section */
html body .bm-reviews{display:grid;gap:28px;}
html body .bm-reviews__summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);grid-template-areas:"head dist" "cta dist" "dims dims";gap:16px 48px;align-items:start;}
html body .bm-reviews__summary:not(:has(.bm-reviews__dist)){grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "cta" "dims";}
html body .bm-reviews__headline{grid-area:head;display:grid;gap:6px;}
html body .bm-reviews__avg{margin:0;display:flex;align-items:baseline;gap:8px;color:#191919;}
html body .bm-reviews__avg-num{font-family:var(--bmx-font-heading,"Geist",sans-serif);font-size:3rem;font-weight:500;line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;}
html body .bm-reviews__avg-of{font-size:1rem;color:#6B6B6B;}
html body .bm-reviews__avg--empty{font-family:var(--bmx-font-heading,"Geist",sans-serif);font-size:1.75rem;font-weight:500;letter-spacing:-0.02em;}
html body .bm-reviews__headline .bm-stars{font-size:1.25rem;}
html body .bm-reviews__basis{margin:0;font-size:.875rem;line-height:1.5;color:#6B6B6B;max-width:46ch;}
html body .bm-reviews__cta{grid-area:cta;margin:4px 0 0;}
html body .bm-reviews__cta .bm-button--primary{width:auto;}
html body .bm-reviews__subhead{margin:0 0 10px;font:500 .75rem/1.6 var(--bmx-font-mono,"Geist Mono",monospace);letter-spacing:.06em;text-transform:uppercase;color:#6B6B6B;}
html body .bm-reviews__dist{grid-area:dist;}
html body .bm-dist{list-style:none;margin:0;padding:0;display:grid;gap:8px;}
html body .bm-dist__row{display:grid;grid-template-columns:4.5rem minmax(60px,1fr) 8.5rem;align-items:center;gap:12px;font-size:.875rem;color:#191919;}
html body .bm-dist__bar{height:8px;background:#F0F0F0;border-radius:2px;overflow:hidden;}
html body .bm-dist__bar span{display:block;height:100%;background:#087443;}
html body .bm-dist__n{color:#6B6B6B;font-variant-numeric:tabular-nums;}
html body .bm-reviews__dims{grid-area:dims;border-top:1px solid #E2E2E2;padding-top:16px;}
html body .bm-reviews__dimlist{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 32px;}
html body .bm-reviews__dimlist div{display:flex;justify-content:space-between;gap:12px;font-size:.875rem;padding:6px 0;border-bottom:1px solid #F0F0F0;}
html body .bm-reviews__dimlist dt{color:#555555;}
html body .bm-reviews__dimlist dd{margin:0;color:#191919;font-weight:500;text-align:right;}
html body .bm-reviews__dimn{color:#6B6B6B;font-weight:400;}

/* Sort and paging */
html body .bm-reviews__sort{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;border-top:1px solid #E2E2E2;padding-top:20px;}
html body .bm-reviews__sort-label{font:500 .75rem/1.6 var(--bmx-font-mono,"Geist Mono",monospace);letter-spacing:.06em;text-transform:uppercase;color:#6B6B6B;}
html body .bm-reviews__sort ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px;}
html body .bm-reviews__sort a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border:1px solid transparent;border-radius:2px;color:#555555;font-size:.875rem;font-weight:500;text-decoration:none;}
html body .bm-reviews__sort a:hover{color:#191919;background:#F7F7F7;}
html body .bm-reviews__sort a[aria-current="true"]{color:#191919;border-color:#191919;background:#FFFFFF;}
html body .bm-reviews__sort a:focus-visible,html body .bm-reviews__pager a:focus-visible{outline:2px solid #087443;outline-offset:2px;}
html body .bm-reviews__pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;}
html body .bm-reviews__pageof{font-size:.875rem;color:#6B6B6B;}

/* Review cards: hairlines, not nested cards */
html body .bm-reviews__list{list-style:none;margin:0;padding:0;}
html body .bm-reviews__list > li{border-top:1px solid #E2E2E2;padding:24px 0;margin:0;}
html body .bm-reviews__list > li:last-child{border-bottom:1px solid #E2E2E2;}
html body .bm-review{display:grid;gap:8px;}
html body .bm-review__rating{margin:0;display:flex;align-items:center;gap:8px;}
html body .bm-review__score{font-size:.875rem;font-weight:500;color:#191919;}
html body .bm-review__title{margin:0;font-family:var(--bmx-font-heading,"Geist",sans-serif);font-size:1.125rem;font-weight:600;line-height:1.35;color:#191919;letter-spacing:-0.01em;}
html body .bm-review__meta{margin:0;font-size:.875rem;color:#6B6B6B;}
html body .bm-review__author{color:#191919;font-weight:500;}
html body .bm-review__body{color:#555555;font-size:1rem;line-height:1.65;max-width:68ch;}
html body .bm-review__body p{margin:0 0 .75em;}
html body .bm-review__body p:last-child{margin-bottom:0;}
html body .bm-review__dims{margin:4px 0 0;display:flex;flex-wrap:wrap;gap:6px 20px;font-size:.8125rem;}
html body .bm-review__dims div{display:flex;gap:6px;}
html body .bm-review__dims dt{color:#6B6B6B;}
html body .bm-review__dims dd{margin:0;color:#191919;font-weight:500;}
html body .bm-review__foot{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px 24px;margin-top:8px;}
html body .bm-review__helpful{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;}
html body .bm-review__helpful-q,html body .bm-review__helpful-counts{margin:0;font-size:.875rem;color:#555555;}
html body .bm-review__vote{display:block;gap:0;}
html body .bm-review__vote-buttons{display:flex;gap:8px;}
html body .bm-button--small{min-height:44px;padding:8px 14px;font-size:.875rem;}
html body .bm-button[aria-pressed="true"]{background:#191919;border-color:#191919;color:#FFFFFF;}
html body .bm-review__vote-n{font-weight:400;opacity:.8;}
html body .bm-review__report{margin:0;font-size:.875rem;color:#6B6B6B;}
html body .bm-review__report summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer;color:#555555;text-decoration:underline;text-underline-offset:3px;}
html body .bm-review__report summary:focus-visible{outline:2px solid #087443;outline-offset:2px;}
html body .bm-review__report[open]{flex-basis:100%;}
html body .bm-review__reportform{margin-top:8px;padding:16px;border:1px solid #E2E2E2;border-radius:2px;background:#FAFAFA;gap:14px;max-width:560px;}
html body .bm-review__report .bm-textlink{display:inline-flex;align-items:center;min-height:44px;}
html body .bm-review__helpful .bm-textlink{display:inline-flex;align-items:center;min-height:44px;}
html body .bm-fieldset{border:0;margin:0;padding:0;display:grid;gap:2px;min-width:0;}
html body .bm-fieldset legend{margin-bottom:4px;padding:0;}
html body .bm-textarea{min-height:180px;resize:vertical;line-height:1.55;}
html body .bm-review__reportform .bm-textarea{min-height:96px;}

/* Review page */
html body .bm-reviewform__product{margin:0 0 20px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;}
html body .bm-reviewform__eyebrow{flex-basis:100%;font:500 .75rem/1.6 var(--bmx-font-mono,"Geist Mono",monospace);letter-spacing:.06em;text-transform:uppercase;color:#6B6B6B;}
html body .bm-reviewform__product .bm-textlink{font-family:var(--bmx-font-heading,"Geist",sans-serif);font-size:1.375rem;font-weight:500;letter-spacing:-0.01em;color:#191919;}
html body .bm-reviewform__by{font-size:.9375rem;color:#6B6B6B;}
html body .bm-reviewform__status{margin:0 0 20px;padding:14px 16px;border-left:3px solid #191919;border-radius:2px;background:#F7F7F7;display:grid;gap:4px;}
html body .bm-reviewform__status p{margin:0;font-size:.9375rem;line-height:1.5;color:#191919;}
html body .bm-reviewform__status-label{font-weight:600;}
html body .bm-reviewform__reason{color:#B42318!important;}
html body .bm-reviewform__explain{color:#555555!important;}
html body .bm-reviewform__gate{display:grid;gap:12px;}
html body .bm-reviewform{gap:24px;}
html body .bm-reviewform__note{margin:0;font-size:.875rem;line-height:1.5;color:#6B6B6B;}
html body .bm-reviewform__note .bm-textlink{display:inline;}
html body .bm-reviewform .bm-reviewform__submit{width:auto;justify-self:start;min-width:12rem;}
html body .bm-counter{margin:0;font-size:.8125rem;color:#6B6B6B;text-align:right;font-variant-numeric:tabular-nums;}

/* Star picker: a radio group drawn as stars */
html body .bm-starpicker{border:0;margin:0;padding:0;min-width:0;display:grid;gap:6px;}
html body .bm-starpicker legend{padding:0;margin-bottom:6px;}
html body .bm-starpicker__options{display:flex;gap:2px;position:relative;}
html body .bm-starpicker__input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none;}
html body .bm-starpicker__star{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;font-size:2rem;line-height:1;color:#D0D0D0;cursor:pointer;border-radius:2px;transition:color .12s ease-out,transform .16s cubic-bezier(.23,1,.32,1);}
html body .bm-starpicker__star:active{transform:scale(.92);}
html body .bm-starpicker__input:focus-visible + .bm-starpicker__star{outline:2px solid #087443;outline-offset:1px;}
html body .bm-starpicker__options:has(.bm-starpicker__input:nth-of-type(1):checked) .bm-starpicker__star:nth-of-type(-n+1),
html body .bm-starpicker__options:has(.bm-starpicker__input:nth-of-type(2):checked) .bm-starpicker__star:nth-of-type(-n+2),
html body .bm-starpicker__options:has(.bm-starpicker__input:nth-of-type(3):checked) .bm-starpicker__star:nth-of-type(-n+3),
html body .bm-starpicker__options:has(.bm-starpicker__input:nth-of-type(4):checked) .bm-starpicker__star:nth-of-type(-n+4),
html body .bm-starpicker__options:has(.bm-starpicker__input:nth-of-type(5):checked) .bm-starpicker__star:nth-of-type(-n+5){color:#F5B301;}
@media (hover:hover){
html body .bm-starpicker__options:has(.bm-starpicker__star:nth-of-type(1):hover) .bm-starpicker__star:nth-of-type(-n+1),
html body .bm-starpicker__options:has(.bm-starpicker__star:nth-of-type(2):hover) .bm-starpicker__star:nth-of-type(-n+2),
html body .bm-starpicker__options:has(.bm-starpicker__star:nth-of-type(3):hover) .bm-starpicker__star:nth-of-type(-n+3),
html body .bm-starpicker__options:has(.bm-starpicker__star:nth-of-type(4):hover) .bm-starpicker__star:nth-of-type(-n+4),
html body .bm-starpicker__options:has(.bm-starpicker__star:nth-of-type(5):hover) .bm-starpicker__star:nth-of-type(-n+5){color:#F8CF5C;}
}
html body .bm-starpicker__readout{margin:0;font-size:.875rem;color:#555555;min-height:1.4em;}
html body .bm-starpicker.bm-formfield--error .bm-starpicker__star{color:#E8B4AF;}

/* Optional specific ratings */
html body .bm-dims{border-top:1px solid #E2E2E2;border-bottom:1px solid #E2E2E2;}
html body .bm-dims__summary{display:flex;align-items:center;min-height:52px;cursor:pointer;font-weight:500;color:#191919;}
html body .bm-dims__summary:focus-visible{outline:2px solid #087443;outline-offset:2px;}
html body .bm-dims[open]{padding-bottom:16px;}
html body .bm-dims[open] > .bm-formfield__hint{margin:0 0 8px;}
html body .bm-dims__group{margin:16px 0 4px;font:500 .75rem/1.6 var(--bmx-font-mono,"Geist Mono",monospace);letter-spacing:.06em;text-transform:uppercase;color:#6B6B6B;}
html body .bm-dim{border:0;margin:0;padding:10px 0;min-width:0;display:flow-root;border-top:1px solid #F0F0F0;}
html body .bm-dim__label{float:left;padding:0;margin:0 16px 0 0;line-height:44px;font-size:.9375rem;color:#191919;}
html body .bm-dim__options{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end;position:relative;}
html body .bm-chip__input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none;}
html body .bm-chip{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 6px;border:1px solid #C8C8C8;border-radius:2px;background:#FFFFFF;color:#191919;font-size:.9375rem;font-variant-numeric:tabular-nums;cursor:pointer;}
html body .bm-chip:hover{border-color:#191919;}
html body .bm-chip--skip{padding:0 12px;color:#555555;}
html body .bm-chip__input:checked + .bm-chip{background:#191919;border-color:#191919;color:#FFFFFF;}
html body .bm-chip__input:focus-visible + .bm-chip{outline:2px solid #087443;outline-offset:2px;}

/* Finder */
html body .bm-finder__row{display:flex;gap:8px;}
html body .bm-finder__row .bm-textinput{flex:1;}
html body .bm-finder .bm-finder__go{width:auto;}
html body .bm-finder__count,html body .bm-finder__none{margin:16px 0 0;font-size:.875rem;color:#6B6B6B;}
html body .bm-finder__list{list-style:none;margin:8px 0 0;padding:0;}
html body .bm-finder__list li{border-top:1px solid #E2E2E2;margin:0;}
html body .bm-finder__list li:last-child{border-bottom:1px solid #E2E2E2;}
html body .bm-finder__item{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px;min-height:52px;padding:12px 4px;text-decoration:none;color:#191919;}
html body .bm-finder__item:hover{background:#F7F7F7;}
html body .bm-finder__item:focus-visible{outline:2px solid #087443;outline-offset:-2px;}
html body .bm-finder__name{font-weight:500;}
html body .bm-finder__co{font-size:.875rem;color:#6B6B6B;}

/* Withdraw */
html body .bm-withdraw{margin-top:28px;border-top:1px solid #E2E2E2;padding-top:8px;}
html body .bm-withdraw summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer;color:#B42318;font-size:.9375rem;font-weight:500;}
html body .bm-withdraw summary:focus-visible{outline:2px solid #087443;outline-offset:2px;}
html body .bm-withdraw__form{margin-top:8px;gap:12px;}
html body .bm-withdraw__form .bm-button--danger{width:auto;justify-self:start;}

/* Account: your reviews */
html body .bm-myreviews{list-style:none;margin:0;padding:0;}
html body .bm-myreviews__item{display:grid;gap:4px;padding:14px 0;border-top:1px solid #E2E2E2;margin:0;}
html body .bm-myreviews__item:first-child{border-top:0;padding-top:0;}
html body .bm-myreviews__item p{margin:0;}
html body .bm-myreviews__product{font-size:.875rem;}
html body .bm-myreviews__product .bm-textlink{display:inline-flex;min-height:auto;}
html body .bm-myreviews__title{font-weight:500;color:#191919;}
html body .bm-myreviews__meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:.875rem;color:#555555;}
html body .bm-myreviews__reason{font-size:.875rem;color:#B42318;}
html body .bm-myreviews__actions .bm-textlink{display:inline-flex;align-items:center;min-height:44px;}

@media (max-width:767px){
html body .bm-reviews__summary{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "cta" "dist" "dims";gap:16px;}
html body .bm-reviews__avg-num{font-size:2.5rem;}
html body .bm-reviews__dimlist{grid-template-columns:minmax(0,1fr);}
html body .bm-dist__row{grid-template-columns:3.75rem minmax(40px,1fr) auto;}
html body .bm-reviews__cta .bm-button--primary,html body .bm-reviewform .bm-reviewform__submit{width:100%;}
html body .bm-dim__label{float:none;display:block;line-height:1.4;margin:0 0 8px;}
html body .bm-dim__options{justify-content:flex-start;}
html body .bm-finder__row{flex-direction:column;}
html body .bm-finder .bm-finder__go{width:100%;}
}
@media (prefers-reduced-motion:reduce){html body .bm-starpicker__star{transition:none;}html body .bm-starpicker__star:active{transform:none;}}

/* Design review fixes (Phase 7). */
html body .bm-dims__summary,html body .bm-review__report summary,html body .bm-withdraw summary{list-style:none;}
html body .bm-dims__summary::-webkit-details-marker,html body .bm-review__report summary::-webkit-details-marker,html body .bm-withdraw summary::-webkit-details-marker{display:none;}
html body .bm-dims__summary::after{content:"+";content:"+" / "";margin-left:auto;font:400 1.375rem/1 var(--bmx-font-body,"General Sans",sans-serif);color:#555555;}
html body .bm-dims[open] > .bm-dims__summary::after{content:"\2212";content:"\2212" / "";}
html body .bm-review__report summary::before,html body .bm-withdraw summary::before{content:"+";content:"+" / "";display:inline-block;width:1em;margin-right:4px;text-decoration:none;}
html body .bm-review__report[open] summary::before,html body .bm-withdraw[open] summary::before{content:"\2212";content:"\2212" / "";}
html body .bm-chip__input:checked + .bm-chip--skip{background:#F0F0F0;border-color:#C8C8C8;color:#191919;}
html body .bm-reviews{margin-top:12px;}
html body .bm-myreviews__status{margin:0;font-size:.875rem;color:#555555;}
