/* Review stars across the site: an inline badge that lives inside an existing meta line (empty = no space),
   and a one-row star picker. Same gold as the profile rating capsule (user-reviews.css). */
.rs-badge.rs-badge{display:inline-flex;align-items:baseline;gap:2px;margin-left:5px;color:#f1c84d;font:700 11px/1 'Chakra Petch',sans-serif;white-space:nowrap;vertical-align:baseline}
/* Empty badges stay in the layout at zero size so the IntersectionObserver can still see them. */
.rs-badge:empty{display:inline-block;width:1px;height:1px;margin:0 0 0 -1px;overflow:hidden}
.rs-badge .rs-star{width:11px;height:11px;flex:none;fill:currentColor;align-self:center;transform:translateY(-.5px)}
.rs-badge b{font-weight:700}
.rs-badge.rs-badge b{color:#f1c84d}
.rs-badge.rs-badge em{font:500 10px/1 Anuphan,sans-serif;font-style:normal;color:#9fb2a5}

.rs-rate{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px;margin:12px 0 0;padding:8px 12px;border:1px solid rgba(241,200,77,.28);border-radius:12px;background:rgba(241,200,77,.06);font-family:Anuphan,sans-serif}
.rs-rate:empty{display:none}
.rs-rate-label{flex:1 1 180px;min-width:0;color:#f4f7ed;font:600 14px/1.35 Anuphan,sans-serif}
.rs-rate-stars{display:inline-flex;flex:none;gap:0;margin-right:-6px}
.rs-rate-stars button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;background:none;color:rgba(255,255,255,.24);cursor:pointer;-webkit-tap-highlight-color:transparent}
.rs-rate-stars button .rs-pick{width:24px;height:24px;fill:currentColor;transition:transform .15s ease,color .15s ease}
.rs-rate-stars button.on{color:#f1c84d}
.rs-rate-stars button.on .rs-pick{filter:drop-shadow(0 0 6px rgba(241,200,77,.45))}
.rs-rate-stars:hover button{color:#f1c84d}
.rs-rate-stars button:hover~button{color:rgba(255,255,255,.24)}
.rs-rate-stars button:active .rs-pick{transform:scale(.88)}
.rs-rate-stars button:focus-visible{outline:2px solid #ecf500;outline-offset:-4px;border-radius:50%}
.rs-rate.is-busy .rs-rate-stars{opacity:.55;pointer-events:none}
.rs-rate-note{flex:1 0 100%;color:#9fb2a5;font:500 12px/1.4 Anuphan,sans-serif}
.rs-rate-note:empty,.rs-rate-label:empty{display:none}
.rs-write{padding:0;border:0;background:none;color:#8cdb68;font:600 12px/1.4 Anuphan,sans-serif;cursor:pointer;text-decoration:underline;text-underline-offset:2px}

/* Compact: a pill inside a comparison cell; the stars open in one small centered dialog. */
.rs-rate.is-compact{display:flex;justify-content:center;margin:0;padding:0;border:0;background:none}
.rs-pill{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:30px;padding:4px 10px;border:1px solid rgba(241,200,77,.4);border-radius:999px;background:rgba(241,200,77,.08);color:#f1c84d;font:700 12px/1.2 Anuphan,sans-serif;white-space:nowrap;cursor:pointer}
.rs-pill .rs-star{width:13px;height:13px;flex:none;fill:currentColor}
.rs-pill-act{display:inline-flex;align-items:center;gap:4px}
.rs-pill.is-mine{border-color:transparent;background:none;color:#9fb2a5}
.rs-pill.is-mine .rs-star{color:#f1c84d}
.rs-pill:focus-visible{outline:2px solid #ecf500;outline-offset:2px}
dialog.rs-sheet{box-sizing:border-box;width:min(380px,calc(100% - 24px));max-height:min(80dvh,420px);margin:auto;padding:0;border:1px solid rgba(241,200,77,.45);border-radius:16px;background:linear-gradient(180deg,#0d2014,#06120b);color:#f4f7ed;overflow:auto;overscroll-behavior:contain}
dialog.rs-sheet::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(4px)}
.rs-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px 0 14px}
.rs-sheet-head strong{min-width:0;color:#f1c84d;font:800 15px/1.3 'Chakra Petch',Anuphan,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rs-sheet-close{display:grid;place-items:center;flex:none;width:34px;height:34px;padding:0;border:1px solid #ffffff20;border-radius:50%;background:#ffffff08;color:#a9b8ae;cursor:pointer}
.rs-sheet-close svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.rs-sheet-body{padding:8px 14px 14px}
.rs-sheet .rs-rate{margin:0;display:grid;justify-content:center;justify-items:center;text-align:center;border:0;background:none;padding:0}
.rs-sheet .rs-rate-label{flex:none;color:#c9d6cc;font-size:14px}
.rs-sheet .rs-rate-stars{margin:0}
.rs-sheet .rs-rate-stars button{width:44px;height:44px}
.rs-sheet .rs-rate-stars button .rs-pick{width:30px;height:30px}
@media (hover:none){.rs-rate-stars:hover button{color:rgba(255,255,255,.24)}.rs-rate-stars:hover button.on{color:#f1c84d}}
.rs-badge.is-cell{margin:0;font-size:15px;gap:3px}
.rs-badge.is-cell .rs-star{width:14px;height:14px}
.rs-badge.is-cell em{font-size:11px}
.rs-badge.is-cell:empty{display:inline}
.rs-badge.is-cell:empty::before{content:"—";color:#9fb2a5}
.rs-badge.is-tight{margin-left:3px;font-size:10px}
.rs-badge.is-tight .rs-star{width:10px;height:10px}
.rs-badge.is-tight em{display:none}
/* Card tiles keep the meta line on one row — the stars never add height. */
.mini-card-choice>small:has(.rs-badge){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Card chip variant (compare rate bar): thumbnail + short name + action. */
.rs-pill.has-card{gap:7px;min-height:38px;padding:3px 12px 3px 4px;color:#f4f7ed}
.rs-pill.has-card img{width:26px;height:32px;flex:none;object-fit:contain}
.rs-pill.has-card .rs-pill-name{max-width:110px;overflow:hidden;text-overflow:ellipsis;font:700 12px/1.2 'Chakra Petch',Anuphan,sans-serif}
.rs-pill.has-card .rs-pill-act{color:#f1c84d;font-weight:700}
.rs-pill.has-card.is-mine{border-color:rgba(241,200,77,.25);background:rgba(255,255,255,.03)}
