/* Audience Reviews: feed (#tc9ReviewFeed) and the review form panel (#tc9Review). */
.tc9-review-feed{--rv-accent:#e8544f;--rv-accent-ink:#ff8a85;--rv-line:rgba(255,255,255,.09);--rv-line-strong:rgba(255,255,255,.2);--rv-panel:#0e0e12;--rv-raise:#131318;--rv-ink:#f4f2ee;--rv-body:#d6d3dc;--rv-dim:#a8a5b0;--rv-mute:#8a8792;padding:clamp(8px,1.5vw,16px) 0 clamp(36px,5vw,64px);color:var(--rv-ink)}
.rv7-panel{border:1px solid var(--rv-line);border-radius:14px;background:var(--rv-panel);box-shadow:inset 0 1px rgba(255,255,255,.04);padding:clamp(22px,3.2vw,38px)}
.rv7-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:20px 40px;margin-bottom:clamp(22px,3vw,32px);padding-bottom:clamp(20px,2.6vw,28px);border-bottom:1px solid var(--rv-line)}
.rv7-eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-family:var(--mono);font-size:10.5px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--rv-accent-ink)}
.rv7-eyebrow:before{content:"";width:22px;height:1px;background:currentColor}
.rv7-head h2{margin:0;font-family:var(--display);font-size:clamp(28px,3.6vw,44px);font-weight:500;line-height:1.02;letter-spacing:-.01em;color:var(--rv-ink)}
.rv7-lede{max-width:46ch;margin:12px 0 0;font-size:15px;line-height:1.55;color:var(--rv-dim)}
.rv7-side{display:flex;align-items:flex-end;gap:28px}
.rv7-write{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border:1px solid var(--rv-accent);border-radius:10px;background:var(--rv-accent);color:#0a0a0c;font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background-color .2s ease,transform .2s ease}
.rv7-write svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rv7-write:hover{background:#f06a65;transform:translateY(-1px)}
.rv7-write.rv7-ghost{background:transparent;color:var(--rv-ink);border-color:var(--rv-line-strong)}
.rv7-write.rv7-ghost:hover{border-color:var(--rv-ink);background:rgba(255,255,255,.04)}
.tc9-review-feed :focus-visible,#tc9Review :focus-visible{outline:2px solid var(--rv-ink,#f4f2ee);outline-offset:3px}

/* Summary: average score plus the real score distribution from the API. */
.tc9-review-summary{display:flex;align-items:flex-end;gap:18px;min-height:44px;color:var(--rv-dim);font-size:13px}
.rv7-avg{display:flex;align-items:baseline;gap:4px}
.rv7-avg strong{font-family:var(--display);font-size:44px;font-weight:500;line-height:.9;color:var(--rv-ink);font-variant-numeric:tabular-nums}
.rv7-avg span{font-family:var(--mono);font-size:13px;color:var(--rv-mute)}
.rv7-avg-meta{display:grid;gap:3px;font-size:12.5px;line-height:1.3;white-space:nowrap}
.rv7-avg-meta b{font-weight:600;color:var(--rv-body)}
.rv7-dist{display:flex;align-items:flex-end;gap:3px;height:36px;margin:0;padding:0;list-style:none}
.rv7-dist li{width:7px;min-height:2px;border-radius:2px 2px 0 0;background:rgba(255,255,255,.16)}
.rv7-dist li.rv7-hi{background:var(--rv-accent)}
.rv7-sum-note{font-family:var(--mono);font-size:11px;letter-spacing:.04em;color:var(--rv-mute)}

/* Review list and cards. */
.tc9-review-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tc9-review-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:clamp(20px,2.4vw,28px);border:1px solid var(--rv-line);border-radius:12px;background:var(--rv-raise);transition:border-color .2s ease}
.tc9-review-card:hover{border-color:var(--rv-line-strong)}
.tc9-review-card.rv7-own{border-color:rgba(232,84,79,.4)}
.rv7-card-head{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:18px}
.rv7-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;overflow:hidden;background:#24232b;color:var(--rv-dim);font-size:13px;font-weight:700;letter-spacing:.02em}
.rv7-avatar img{width:100%;height:100%;object-fit:cover}
.rv7-who{display:grid;gap:3px;min-width:0}
.tc9-review-author{overflow:hidden;color:var(--rv-ink);font-size:14.5px;font-weight:700;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}
.tc9-review-author:hover{color:var(--rv-accent-ink);text-decoration:underline;text-underline-offset:3px}
.rv7-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:12px;color:var(--rv-mute)}
.rv7-you{font-family:var(--mono);font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--rv-accent-ink)}
.rv7-score{display:flex;align-items:baseline;gap:2px;padding:6px 10px;border:1px solid var(--rv-line);border-radius:8px;font-variant-numeric:tabular-nums}
.rv7-score b{font-family:var(--display);font-size:22px;font-weight:500;line-height:1;color:var(--rv-ink)}
.rv7-score span{font-family:var(--mono);font-size:11px;color:var(--rv-mute)}
.rv7-headline{margin:0 0 10px;font-family:var(--display);font-size:clamp(20px,1.9vw,23px);font-weight:500;line-height:1.25;color:var(--rv-ink);overflow-wrap:anywhere}
.rv7-text{margin:0;color:var(--rv-body);font-size:16px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.rv7-text.rv7-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:7;overflow:hidden}
.rv7-more{align-self:flex-start;margin-top:8px;padding:6px 0;border:0;background:none;color:var(--rv-accent-ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.rv7-more:hover{text-decoration:underline;text-underline-offset:3px}
.tc9-review-spoiler{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:12px 16px;border:1px dashed var(--rv-line-strong);border-radius:10px;background:rgba(255,255,255,.025);color:var(--rv-dim);font:inherit;font-size:14px;text-align:left;cursor:pointer;transition:border-color .2s ease,color .2s ease}
.tc9-review-spoiler:hover{border-color:var(--rv-ink);color:var(--rv-ink)}
.tc9-review-spoiler svg{flex:0 0 18px;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tc9-review-spoiler strong{color:var(--rv-ink);font-weight:600}
.tc9-review-card footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:auto;padding-top:20px;color:var(--rv-mute);font-size:12.5px}
.rv7-helpful{margin-right:auto}
.tc9-review-card footer button,.rv7-btn{min-height:36px;padding:0 14px;border:1px solid var(--rv-line);border-radius:8px;background:transparent;color:var(--rv-dim);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:border-color .2s ease,color .2s ease}
.tc9-review-card footer button:hover,.rv7-btn:hover{border-color:var(--rv-line-strong);color:var(--rv-ink)}
.tc9-review-card footer [data-review-action="delete"]:hover{border-color:rgba(232,84,79,.6);color:var(--rv-accent-ink)}
.rv7-card-status{margin:12px 0 0;font-size:13px;color:#f0b07a}
.rv7-card-status:empty{display:none}

/* Inline edit form inside an owner's card. */
.rv7-edit{display:grid;gap:14px}
.rv7-edit .rv7-field label,.rv7-edit legend{font-size:13px;font-weight:600;color:var(--rv-body)}

/* Loading, empty and error states. */
.rv7-state{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:clamp(22px,3vw,32px);border:1px dashed var(--rv-line-strong);border-radius:12px}
.rv7-state h3{margin:0 0 6px;font-family:var(--display);font-size:22px;font-weight:500;color:var(--rv-ink)}
.rv7-state p{margin:0;max-width:52ch;color:var(--rv-dim);font-size:14.5px;line-height:1.55}
.rv7-state.rv7-error{border-style:solid;border-color:rgba(240,176,122,.35)}
.rv7-state.rv7-error h3{color:#f0b07a}
.rv7-skel{min-height:210px;pointer-events:none}
.rv7-skel i{display:block;height:12px;margin-bottom:12px;border-radius:6px;background:rgba(255,255,255,.06);animation:rv7Pulse 1.4s ease-in-out infinite}
.rv7-skel i:nth-child(1){width:40%;height:14px;margin-bottom:22px}.rv7-skel i:nth-child(2){width:70%;height:18px}.rv7-skel i:nth-child(3){width:95%}.rv7-skel i:nth-child(4){width:88%}.rv7-skel i:nth-child(5){width:60%}
@keyframes rv7Pulse{50%{opacity:.45}}
@keyframes rv7In{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.tc9-review-card:not(.rv7-skel){animation:rv7In .4s cubic-bezier(.2,.75,.25,1) both}

/* Review form panel (#tc9Review), shared fields for the inline edit form. */
#tc9Review .tc9-g4{min-height:0;margin:0 0 18px;padding:0;border:0;background:none;font-size:14px;color:var(--rv-dim,#a8a5b0)}
#tc9Review .tc9-g4:before{display:none}
#tc9Review .tc9-g4 a{display:inline-flex;align-items:center;min-height:40px;margin-right:6px;padding:0 16px;border:1px solid #e8544f;border-radius:10px;color:#f4f2ee;text-decoration:none}
#tc9Review .tc9-g4 a:hover{background:rgba(232,84,79,.12)}
#tc9Review .tc9-l4,.rv7-edit{display:grid;grid-template-columns:1fr;gap:18px;padding:0}
#tc9Review .tc9-l4>*{grid-column:1!important}
.rv7-field{display:grid;gap:8px}
.rv7-field label,#tc9Review .tc9-m4 label{display:block;margin:0;font-size:13.5px;font-weight:600;color:#e6e3ea}
.rv7-hint{font-weight:400;color:#8a8792}
#tc9Review .tc9-l4 input:not([type=range]):not([type=checkbox]),#tc9Review .tc9-l4 textarea,.rv7-edit input:not([type=range]):not([type=checkbox]),.rv7-edit textarea{width:100%;min-height:48px;padding:12px 14px;border:1px solid rgba(255,255,255,.14);border-radius:10px;background:#0a0a0d;color:#f4f2ee;font:inherit;font-size:15px;line-height:1.5;box-shadow:none;transition:border-color .2s ease,background-color .2s ease}
#tc9Review .tc9-l4 textarea,.rv7-edit textarea{min-height:170px;resize:vertical}
#tc9Review .tc9-l4 input:not([type=range]):not([type=checkbox]):focus,#tc9Review .tc9-l4 textarea:focus,.rv7-edit input:not([type=range]):not([type=checkbox]):focus,.rv7-edit textarea:focus{border-color:#e8544f;background:#0d0d11;box-shadow:0 0 0 3px rgba(232,84,79,.14);outline:none}
#tc9Review ::placeholder,.rv7-edit ::placeholder{color:#75727d}
#tc9Review .tc9-m4,.rv7-edit .tc9-m4{padding:16px 18px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.02)}
.rv7-score-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.rv7-score-out{font-family:var(--mono);font-size:12px;color:#8a8792}
#tc9Review .tc9-m4 output,.rv7-edit .tc9-m4 output{display:inline;min-width:0;height:auto;margin:0 2px 0 0;padding:0;background:none;font-family:var(--display);font-size:26px;color:#f4f2ee}
#tc9Review .tc9-m4 input[type=range],.rv7-edit input[type=range]{width:100%;height:28px;margin:0;accent-color:#e8544f;cursor:pointer}
.rv7-scale{display:flex;justify-content:space-between;margin-top:4px;font-family:var(--mono);font-size:10.5px;color:#75727d}
#tc9Review .tc9-n4,.rv7-edit .tc9-n4{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:12px 14px;border:1px solid rgba(255,255,255,.1);border-radius:10px;font-size:14px;color:#e6e3ea;cursor:pointer}
#tc9Review .tc9-n4 input,.rv7-edit .tc9-n4 input{flex:0 0 18px;width:18px;height:18px;margin:2px 0 0;accent-color:#e8544f}
.rv7-n4-copy{display:grid;gap:2px}
.rv7-n4-copy small{font-size:12.5px;color:#8a8792}
#tc9Review .tc9-field-count,.rv7-edit .tc9-field-count{margin:-10px 2px 0;color:#8a8792;font:11px var(--mono)}
#tc9Review .tc9-l4 button[type=submit],.rv7-edit button[type=submit]{justify-self:start;min-width:180px;height:auto;min-height:48px;padding:0 24px;border:1px solid #e8544f;border-radius:10px;background:#e8544f;color:#0a0a0c;font-size:15px;font-weight:700;box-shadow:none;filter:none;transform:none;transition:background-color .2s ease}
#tc9Review .tc9-l4 button[type=submit]:hover,.rv7-edit button[type=submit]:hover{background:#f06a65;box-shadow:none;transform:none}
#tc9Review .tc9-l4 button[type=submit]:disabled,.rv7-edit button[type=submit]:disabled{opacity:.6;cursor:wait}
.rv7-edit-actions{display:flex;flex-wrap:wrap;gap:10px}
#tc9Review .tc9-i4:not(:empty){margin-top:16px;padding:12px 14px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.03);font-size:14px;color:#e6e3ea}

@media(max-width:900px){.rv7-head{grid-template-columns:1fr;align-items:start}.rv7-side{justify-content:space-between}}
@media(max-width:760px){.tc9-review-list{grid-template-columns:1fr}}
@media(max-width:600px){
.rv7-panel{padding:22px 16px;border-radius:12px}
.rv7-head h2{font-size:32px}
.rv7-lede{font-size:14.5px}
.rv7-side{flex-direction:column;align-items:stretch;gap:18px}
.rv7-write{width:100%;min-height:48px}
.tc9-review-card{padding:18px 16px}
.rv7-card-head{grid-template-columns:36px minmax(0,1fr) auto;gap:10px}
.rv7-avatar{width:36px;height:36px}
.rv7-text{font-size:15.5px}
.tc9-review-card footer button{min-height:44px;flex:1 1 0}
.rv7-helpful{flex-basis:100%}
.rv7-state{flex-direction:column;align-items:stretch}
#tc9Review .tc9-l4 button[type=submit],.rv7-edit button[type=submit]{justify-self:stretch;width:100%}
.rv7-edit-actions>*{flex:1 1 0;min-height:48px}}
@media(prefers-reduced-motion:reduce){.tc9-review-feed *,#tc9Review *{animation:none!important;transition:none!important}.rv7-write:hover{transform:none}}

/* Explicit layout rules must never override authenticated or editing visibility. */
#tc9Review[hidden],#tc9Review [hidden],#tc9ReviewFeed [hidden]{display:none!important}
#tc9Review input,#tc9Review textarea,.rv7-edit input,.rv7-edit textarea{box-sizing:border-box;min-width:0}
.rv7-side,.tc9-review-summary{flex-wrap:wrap;min-width:0}
.rv7-body,.rv7-field,.rv7-edit{min-width:0}
