/* Reputation (round-2 gap 2): review inbox, dashboard, requests, widget, settings */
:root{--star:#E8A400;--star-off:#3a414c}
[data-theme="light"]{--star:#D99A00;--star-off:#D3CEC3}
.rv-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:10px 16px}
.rv-top .sub{margin-bottom:10px}.rv-topact{display:flex;gap:8px;margin-bottom:12px}
.rv-tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin:0 0 14px;overflow-x:auto;scrollbar-width:none}
.rv-tabs a{padding:10px 14px;color:var(--muted);text-decoration:none;font-weight:600;white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-1px}
.rv-tabs a.on{color:var(--text);border-color:var(--accent)}.rv-tabs a:hover{color:var(--text)}
.rv-stars{display:inline-flex;gap:1px;color:var(--star);font-size:14px;letter-spacing:0;vertical-align:1px}.rv-stars i{font-style:normal;color:var(--star)}.rv-stars i.off{color:var(--star-off)}
.rv-stars.big{font-size:22px}.kpi b .rv-stars{font-size:16px;margin-left:4px;vertical-align:3px}
.rv-kpis{margin-top:4px}
.rv-filters{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin:4px 0 2px}
.rv-filters .btn.sm small{opacity:.75;font-weight:500;margin-left:2px}
.rv-tb select{flex:0 1 170px}
.rv-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:14px;align-items:start}
.rv-list{display:flex;flex-direction:column;gap:8px;min-width:0}
.rv-card{background:var(--ink-2);border:1px solid var(--line);border-radius:4px;padding:12px 14px;cursor:pointer;position:relative;transition:border-color .1s}
.rv-card:hover{border-color:var(--muted)}.rv-card.on{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
.rv-card:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.rv-card.unseen::before{content:"";position:absolute;left:-1px;top:14px;width:3px;height:22px;background:var(--accent);border-radius:0 2px 2px 0}
.rv-card-h,.rv-d-h{display:flex;align-items:center;gap:10px}
.rv-av{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;color:#fff;font-weight:700;flex:none;font-size:15px}
.rv-who{display:flex;flex-direction:column;min-width:0;flex:1}.rv-who b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rv-who span{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.rv-text{margin:8px 0 6px;font-size:14px;color:var(--soft);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.rv-meta{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;font-size:12px}.rv-meta .tag{margin:0}
.rv-src{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--soft);white-space:nowrap}.rv-g{width:14px;height:14px;flex:none}
.rv-priv{color:var(--warn)}
.rv-fb{display:inline-grid;place-items:center;width:14px;height:14px;border-radius:3px;background:#1877F2;color:#fff;font:700 11px/1 Arial,sans-serif}
.rv-fb.big{width:28px;height:28px;font-size:20px;border-radius:6px;flex:none}
.rv-link{color:var(--soft);white-space:nowrap}
.rv-chip{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;white-space:nowrap;border:1px solid var(--line);border-radius:999px;padding:2px 9px;color:var(--soft)}
.rv-chip.ok{color:var(--ok);border-color:color-mix(in srgb,var(--ok) 45%,transparent)}
.rv-chip.need{color:var(--st-serious);border-color:color-mix(in srgb,var(--st-serious) 45%,transparent)}
.rv-chip.draft{color:var(--s1);border-color:color-mix(in srgb,var(--s1) 50%,transparent)}
.rv-chip .rv-g{width:12px;height:12px}
.rv-sen{font-size:12px;font-weight:600;padding:1px 7px;border-radius:2px;background:var(--ink-3)}
.rv-sen.positive{color:var(--ok)}.rv-sen.negative{color:var(--bad)}.rv-sen.mixed{color:var(--warn)}.rv-sen.neutral{color:var(--muted)}
.rv-detail{position:sticky;top:120px;max-height:calc(100dvh - 140px);overflow:auto;background:var(--ink-2);border:1px solid var(--line);border-radius:4px;padding:16px}
.rv-pick{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:240px;text-align:center}
.rv-d-stars{display:flex;align-items:center;gap:12px;margin:12px 0 4px;flex-wrap:wrap}.rv-d-stars .muted{font-size:13px}
.rv-d-text{font-size:15px;line-height:1.55;margin:6px 0 12px;white-space:pre-wrap;overflow-wrap:anywhere}
.rv-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px;border-top:1px solid var(--line-2);border-bottom:1px solid var(--line-2);padding:8px 0 10px;margin:8px 0}
.rv-facts label{margin:4px 0;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.rv-facts select{margin-top:4px;padding:6px 8px;font-size:14px;text-transform:none;letter-spacing:0}
.rv-facts small,.rv-fact small{display:block;text-transform:none;letter-spacing:0;font-size:11px;color:var(--muted);margin-top:2px}
.rv-fact{margin:4px 0;font-size:14px}.rv-fact>span:first-child{display:block;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin:6px 0 6px}
.rv-fact .tag{margin:0 4px 4px 0}.rv-fact .linkbtn{display:block;margin-top:2px}
.rv-req{font-size:13px;color:var(--soft);background:var(--ink-3);padding:7px 10px;border-radius:2px;margin:8px 0}
.rv-feat{margin:10px 0 4px;font-size:14px}
.rv-h3{font-size:15px;margin:16px 0 8px}
.rv-posted{border-left:3px solid var(--ok);background:var(--ink-3);padding:10px 12px;margin-bottom:10px}
.rv-posted p{margin:0 0 6px;white-space:pre-wrap;font-size:14px}.rv-posted span{font-size:12px;color:var(--muted)}
.rv-draftnote{font-size:13px;color:var(--soft);background:var(--ink-3);border:1px dashed var(--line);padding:7px 10px;margin-bottom:8px}
.rv-draftnote.ai{border-color:color-mix(in srgb,var(--s1) 60%,transparent);color:var(--text)}
.rv-compose textarea{min-height:150px;font-size:14px;line-height:1.5}
.rv-cbar{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 10px}
.rv-cact{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.rv-count{font-size:12px}
.rv-tplsel{width:auto;padding:5px 8px;font-size:13px}
.rv-approve{display:flex;gap:8px;flex-wrap:wrap}.rv-approve .btn:first-child{flex:1 1 220px}
.rv-small{font-size:13px;margin:8px 0 0}
.rv-hist{margin-top:14px;font-size:13px}.rv-hist summary{cursor:pointer;color:var(--accent-hi)}
.rv-hist ul{list-style:none;padding:0;margin:8px 0 0}.rv-hist li{padding:8px 0;border-top:1px solid var(--line-2);color:var(--soft)}
.rv-hist li p{margin:4px 0 0;color:var(--muted);white-space:pre-wrap}
.rv-empty{text-align:center;padding:28px}.rv-more{font-size:13px;text-align:center}
.rv-dlg-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.rv-dlg .rv-d{padding:0}
/* dashboard */
.rv-dash .cc-head{margin-bottom:4px}
.rv-line{fill:none;stroke:var(--s2);stroke-width:2.5;stroke-linejoin:round}.rv-dot{fill:var(--s2)}
.rv-sw-line{display:inline-block;width:16px;height:0;border-top:3px solid var(--s2);border-radius:2px}
.hb-w.rv-bad{background:var(--st-crit)}.hb-w.rv-mid{background:var(--st-warn)}
/* requests */
.rv-msg{background:var(--ink-3);padding:10px 12px;margin:10px 0 0;font-size:14px}.rv-msg p{margin:4px 0 0}.rv-msg span{font-size:12px}
.rv-fbi{align-items:flex-start}.rv-fbi p{margin:4px 0 0;color:var(--soft);font-size:14px}
/* widget */
.rv-wgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:14px;align-items:start}
.rv-code{display:flex;gap:8px;align-items:flex-start}.rv-code textarea{min-height:0;font:12px/1.45 var(--mono);color:var(--soft)}
.rv-prev iframe{width:100%;height:560px;border:1px solid var(--line-2);border-radius:2px;background:#fbfaf7;display:block}
.rv-empty-w{max-width:640px}
/* settings */
.rv-set{display:grid;grid-template-columns:minmax(0,1fr);gap:0;max-width:900px}
.rv-conn{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.rv-conn-l{display:flex;gap:12px;align-items:flex-start;min-width:0;flex:1}.rv-conn-l .rv-g{width:28px;height:28px;margin-top:2px}
.rv-conn-l h3{margin:0 0 2px;font-size:16px}.rv-conn-l p{margin:0;font-size:14px}
.rv-conn-r{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.rv-set h4{margin:16px 0 8px;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.rv-loc{cursor:pointer;align-items:center}.rv-loc-r{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:13px;color:var(--soft);text-align:right}
.rv-tpl{margin:4px 0 0;color:var(--soft);font-size:13px;white-space:pre-wrap}
.rv-set code{font-family:var(--mono);font-size:12px;background:var(--ink-3);padding:1px 5px}
@media (max-width:900px){
  .rv-split{grid-template-columns:1fr}.rv-detail{display:none}
  .rv-wgrid{grid-template-columns:1fr}
}
@media (max-width:640px){
  .rv-topact{width:100%}.rv-topact .btn{flex:1}
  .rv-tb select{flex:1 1 45%}.rv-tb input{flex:1 1 100%}
  .rv-facts{grid-template-columns:1fr}
  .rv-filters .seg{width:100%}.rv-starseg .btn{flex:1;padding:6px 4px}
  .rv-loc{flex-direction:column;align-items:flex-start}.rv-loc-r{align-items:flex-start;text-align:left;padding-left:26px}
  .rv-code{flex-direction:column}.rv-code .btn{align-self:flex-end}
}
