/* The moderation queue, and the vote widget it shares with the report page.

   Both live here because the widget is part of the voting feature rather than
   part of either page; the report page links this sheet for the widget alone.
   Same rule as app.css: every colour is a token, so the light theme is the
   token list and not a second copy of this file. */

/* ------------------------------------------------------------ vote widget */
.votes {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
}
.votes .vote {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--dim);
  font: inherit; font-size: 12px; line-height: 1; cursor: pointer;
}
/* --panel-3 and not --panel: the pill is --panel-2, and --panel is lighter
   than that in the light theme and darker in the dark one, so it reads as a
   hover in one theme and as nothing at all in the other.  The ramp token
   steps away from the pill whichever way the theme runs. */
.votes .vote:hover:not(:disabled) { background: var(--panel-3); color: var(--ink); }
.votes .vote[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.votes .vote:disabled { cursor: default; opacity: .45; }
.votes .score {
  min-width: 2ch; text-align: center;
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.votes .tally { font-size: 12px; margin-left: 2px; }

/* A refusal from the API -- "you cannot vote on your own report" and the
   like.  It sits inside the widget so it points at the thing that failed
   rather than at the top of the page. */
.vote-error {
  margin-left: 6px; padding: 1px 8px;
  background: var(--error-bg); border-radius: 999px;
  color: var(--ink); font-size: 12px;
}

/* A group's "no longer active" vote: one button on one axis, so a button and
   a sentence rather than a pill with a score in the middle of it.  It shares
   .vote-error above, because a refusal reads the same wherever it lands. */
.gone-vote { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.gone-vote .btn[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.gone-vote .tally { font-size: 13px; }

/* The vote widget on the report page, stacked with the buttons beside it. */
.report-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

/* -------------------------------------------------------------- the queue */
.mod-row { display: flex; gap: 16px; align-items: flex-start; }
.mod-row .thumb img, .mod-row .thumb video {
  width: 140px; height: 105px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line);
}
/* A placeholder rather than nothing at all, so a report with no photo does
   not shunt its whole row left out of line with the ones above it. */
.mod-row .empty-thumb {
  display: block; width: 140px; height: 105px; border-radius: 8px;
  border: 1px dashed var(--line); background: var(--panel-2);
}
.mod-body { flex: 1; min-width: 0; }
.mod-body h2 { margin: 0 0 4px; }
.mod-body .addr { margin: 0 0 4px; overflow-wrap: anywhere; }
.mod-body .meta { color: var(--dim); font-size: 13px; margin: 0; }
.mod-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mod-actions p { margin: 0; font-size: 12px; }

@media (max-width: 720px) {
  .mod-row { flex-direction: column; }
  .mod-actions { align-items: flex-start; }
  /* `.report-head` wraps here, so this column comes to rest on a line of its
     own under the heading with the whole card to spread across.  Standing up
     it would be three short rows down the left with the width beside them
     going to waste, so it lies down instead: the vote pill first, where a
     reader who came to vote already looks, and the status forms after it,
     wrapping to a second line when the two of them do not fit.  Centred
     rather than started, because a pill and a button on one line are two
     heights and it is the line they share that they should agree on.

     It kept `align-items: flex-start` with `.mod-actions` for a while, which
     was this column being aligned to the left of a box that was itself pinned
     to the right of the heading -- the styling of a column at the start of a
     line, given to one that was not on a line of its own yet.  Now it is, and
     the start of the line is where it begins. */
  .report-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
}

/* A moderator's corrections to a hot spot, under the circle they apply to. */
.group-edit { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.group-edit input[type="text"] { flex: 1 1 200px; min-width: 0; }
