/* L2OKO trust, reviews, votes (lib/features/trust.js, reviews.js, votes.js). Loaded on every page:
   the "verified" mark sits in list rows everywhere. */

/* ---------- list row mark (inside the 42 px row) ---------- */
.tr-vf { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--green-2); }
.tr-vf .i { width: 15px; height: 15px; }
.t-top .tr-vf, .t-divine .tr-vf { color: #fff; filter: drop-shadow(0 1px 1px rgba(80, 30, 0, .6)); }

/* ---------- card strip under the head ---------- */
.tr-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding: 6px 8px 6px 10px;
  background: linear-gradient(180deg, var(--row-alt), var(--panel-solid));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.tr-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.tr-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  font: 500 13px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
  color: var(--text); background: var(--plate); border: 1px solid var(--line-2);
}
.tr-chip .i { width: 15px; height: 15px; color: var(--gold); }
.tr-chip-vf { color: #c9f5c4; border-color: #2f7a45; background: rgba(45, 163, 90, .1); }
.tr-chip-vf .i { color: var(--green-2); }
.tr-chip-rate { text-decoration: none; }
.tr-chip-rate b { font-weight: 600; color: var(--gold); }
.tr-chip-rate span { color: var(--muted); }
.tr-chip-rate:hover { border-color: var(--gold-2); }
.tr-chip-rate.is-none .i { color: var(--dim); }
.tr-report { color: var(--muted); border-color: var(--line-2); }
.tr-report:hover { color: var(--red); border-color: rgba(255, 122, 107, .5); }

/* ---------- dialogs ---------- */
.tr-dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tr-dlg-h .box-h { margin: 0; }
.tr-x { display: grid; place-items: center; width: 34px; height: 34px; color: var(--muted); border: 1px solid var(--line-2); background: var(--plate); }
.tr-x:hover { color: #fff; }
.tr-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.tr-ta, .rv-ta { min-height: 88px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 7px; }

/* ---------- account ---------- */
.tr-acc { min-width: 0; }
.tr-acc-in { display: grid; gap: 12px; padding: 14px 16px 16px; min-width: 0; }
.tr-acc .ph .tr-n-read { margin-left: auto; }
.tr-acc .ph .tr-n-read + .cnt { margin-left: 0; }
.tr-n-list { list-style: none; display: grid; gap: 3px; padding: 6px; max-height: 360px; overflow-y: auto; }
.tr-n {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: baseline; gap: 10px;
  padding: 9px 10px; font-size: 14px; line-height: 1.45;
  background: var(--row); border: 1px solid var(--line);
}
.tr-n.is-new { border-color: #6b5527; background: #232118; }
.tr-n-time { font: 500 12.5px/1.4 var(--f-ui); color: var(--muted); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.tr-n-text { min-width: 0; overflow-wrap: anywhere; }
.tr-n-text .pill { height: 18px; font-size: 11px; vertical-align: 1px; }
.tr-n-a { font-size: 13px; white-space: nowrap; }
.tr-b-list { list-style: none; display: grid; gap: 3px; }
.tr-b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; background: var(--row); border: 1px solid var(--line); }
.tr-b-name { font: 500 14.5px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; margin-right: auto; min-width: 0; overflow-wrap: anywhere; }

/* ---------- reviews ---------- */
.rv-in { display: grid; gap: 12px; padding: 12px 14px 14px; min-width: 0; }
.rv-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rv-avg { display: inline-flex; align-items: baseline; gap: 6px; }
.rv-avg b { font: 700 30px/1 var(--f-ui); color: var(--gold); text-shadow: 0 1px 0 #000; }
.rv-act { margin-left: auto; }
.rv-act .note { padding: 8px 12px; }
.rv-stars-ro { display: inline-flex; gap: 1px; }
.rv-s { display: inline-grid; color: #3d3f47; }
.rv-s .i { width: 14px; height: 14px; }
.rv-s.is-on { color: var(--gold); }
.rv-stars-lg .rv-s .i { width: 18px; height: 18px; }
.rv-form { padding: 12px; background: var(--plate); border: 1px solid var(--line); }
.rv-stars { display: inline-flex; gap: 4px; }
.rv-star { position: relative; display: grid; place-items: center; width: 38px; height: 38px; cursor: pointer; color: var(--line-2); background: var(--plate); border: 1px solid var(--line-2); }
.rv-star input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rv-star .i { width: 22px; height: 22px; }
.rv-star.is-on { color: var(--gold); border-color: var(--gold-2); }
.rv-star:focus-within { outline: 2px solid var(--fire-1); outline-offset: 1px; }
.rv-list { list-style: none; display: grid; gap: 4px; }
.rv-item { display: grid; gap: 6px; padding: 10px 12px; background: var(--row); border: 1px solid var(--line); min-width: 0; }
.rv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.rv-author { display: inline-flex; align-items: center; gap: 6px; font: 500 14.5px/1.2 var(--f-ui); letter-spacing: .03em; color: var(--text); }
.rv-author .i { width: 14px; height: 14px; color: var(--muted); }
.rv-date { margin-left: auto; font: 500 12.5px/1 var(--f-ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.rv-text { font-size: 14.5px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.rv-reply { padding: 8px 10px; border-left: 2px solid var(--gold-2); background: rgba(246, 196, 83, .05); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.rv-reply-h { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font: 500 12px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--gold); }
.rv-reply-h .i { width: 13px; height: 13px; }
.rv-own { display: grid; gap: 8px; justify-items: start; }
.rv-reply-form { display: grid; gap: 8px; width: 100%; }
.rv-list-acc { gap: 8px; }
.rv-acc-item { display: grid; gap: 4px; }
.rv-acc-srv { font: 500 13px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- votes: card box ---------- */
.tv-in { display: grid; gap: 12px; padding: 14px 16px 16px; }
.tv-in .link-more { justify-self: start; }
.tv-count { display: flex; align-items: baseline; gap: 10px; }
.tv-count b { font: 700 34px/1 var(--f-ui); color: var(--fire-1); text-shadow: 0 1px 0 #000; font-variant-numeric: tabular-nums; }
.tv-form { gap: 12px; }
.tv-form .cap { gap: 6px; }

/* ---------- /top-votes ---------- */
.tv-n { min-width: 64px; gap: 5px; color: var(--fire-1); }
.tv-n .i { width: 13px; height: 13px; }
.tv-rules { list-style: none; display: grid; gap: 10px; padding: 14px 16px 16px; font-size: 14px; line-height: 1.5; color: var(--text); }
.tv-rules li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.tv-rules .i { width: 16px; height: 16px; margin-top: 2px; color: var(--green-2); }

/* ---------- votes: account ---------- */
.tv-acc-list { list-style: none; display: grid; gap: 8px; }
.tv-acc-item { display: grid; gap: 10px; padding: 12px; background: var(--row); border: 1px solid var(--line); min-width: 0; }
.tv-acc-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.tv-acc-top b { font: 500 15px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; }
.tv-acc-grid { gap: 12px; }
.tv-token { display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.tv-token .code-box, .tv-token .input { flex: 1; min-width: 0; }
.tv-token .btn { flex: none; height: auto; min-height: 36px; }
.tv-token-v { padding: 8px 10px; }
.tv-code-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tv-pv { padding: 8px; background: var(--plate); border: 1px solid var(--line-2); justify-self: start; }
.tv-pv img { display: block; }
.tv-docs { border: 1px solid var(--line); background: var(--plate); }
.tv-docs > summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; font: 500 14px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .04em; }
.tv-docs > summary .i { width: 16px; height: 16px; color: var(--fire-1); }
.tv-docs-in { display: grid; gap: 10px; padding: 0 12px 12px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.tv-docs-h { font: 600 14px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.tv-docs pre.code-box { white-space: pre; word-break: normal; max-height: 420px; }

/* ---------- admin (public/js/admin-trust.js) ---------- */
.tra-lc { display: grid; gap: 6px; padding: 10px 12px; margin: 0 14px 12px; background: var(--plate); border: 1px solid var(--line); font-size: 13.5px; min-width: 0; }
.tra-lc-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tra-lc-h .label { margin-right: auto; }
.tra-chain { list-style: none; display: grid; gap: 3px; }
.tra-chain li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.tra-chain code, .tra-final { font: 12.5px/1.4 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; color: var(--text); }
.tra-st { font: 600 12.5px/1 var(--f-ui); text-align: center; padding: 3px 0; border: 1px solid var(--line-2); }
.tra-st-ok { color: #a8f0a4; border-color: #2f7a45; }
.tra-st-redir { color: var(--fire); border-color: rgba(255, 157, 69, .5); }
.tra-st-bad { color: var(--red); border-color: rgba(255, 122, 107, .5); }
.tra-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.tra-badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; font: 500 12px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--plate); border: 1px solid var(--line-2); cursor: pointer; }
.tra-badge .i { width: 13px; height: 13px; }
.tra-badge[aria-pressed="true"] { color: #fff; border-color: var(--gold-2); background: rgba(246, 196, 83, .1); }
.tra-badge[aria-pressed="true"] .i { color: var(--gold); }
.tra-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; max-height: 200px; overflow-y: auto; }
.tra-ico { display: grid; place-items: center; height: 38px; color: var(--muted); background: var(--plate); border: 1px solid var(--line-2); }
.tra-ico[aria-pressed="true"] { color: var(--gold); border-color: var(--gold-2); }
.tra-ico .i { width: 18px; height: 18px; }
.tra-cards { display: grid; gap: 8px; }
.tra-card { display: grid; gap: 8px; padding: 12px 14px; }
.tra-card-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tra-card-h b { font: 500 15px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; }
.tra-card-h .tra-when { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.tra-text { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.tra-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tra-row .select { width: auto; height: 34px; }
.tra-row .input { flex: 1; min-width: 180px; height: 34px; }
.tra-stars { color: var(--gold); letter-spacing: 1px; }
.tra-muted { color: var(--muted); font-size: 13px; }
.tra-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); align-items: start; }

@media (max-width: 900px) {
  .tra-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tr-bar { padding: 6px; }
  .tr-chip { height: 26px; padding: 0 8px; font-size: 12px; }
  .tr-reasons { grid-template-columns: minmax(0, 1fr); }
  .tr-n { grid-template-columns: minmax(0, 1fr) auto; }
  .tr-n-time { grid-column: 1 / -1; }
  .rv-act { margin-left: 0; width: 100%; }
  .tv-token { flex-wrap: wrap; }
  .tv-token .btn { width: 100%; }
}
