/* Shared shell + chart tokens for the emote archive UI.
   Series colours are the validated dark-mode categorical steps; charts here use a
   single series each, so identity never rests on hue alone. */

:root {
  --bg: #0d0d0d;
  --surface: #18181b;
  --surface-2: #1f1f23;
  --line: #2c2c2a;
  --baseline: #383835;
  --text: #efeff1;
  --text-2: #adadb8;
  --muted: #898781;
  --accent: #a970ff;

  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;

  --up: #0ca30c;
  --down: #d03b3b;
  --new: #3987e5;

  --cell: #101012;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

a { color: inherit; }

/* ---- shell ---- */

header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px 0;
}

.brand { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.brand h1 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.brand .sub { color: var(--muted); font-size: 12.5px; }

nav.tabs { display: flex; gap: 4px; margin-top: 12px; }
nav.tabs a {
  padding: 8px 14px;
  border-radius: 8px 8px 0 0;
  text-decoration: none;
  color: var(--text-2);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
nav.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
nav.tabs a:hover { color: var(--text); }

main { padding: 20px 24px 64px; }

/* ---- controls ---- */

.controls {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 12px 0 14px;
}
.seg { display: inline-flex; background: var(--surface-2); border-radius: 8px; padding: 3px; }
.seg button {
  border: 0; background: transparent; color: var(--text-2);
  font: inherit; font-weight: 500; padding: 6px 13px; border-radius: 6px; cursor: pointer;
}
.seg button.on { background: var(--accent); color: #fff; }

select, input[type=search], .pick-field input, #meUser {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  font: inherit; padding: 7px 10px; border-radius: 8px; outline: none;
}
select:focus, input:focus { border-color: var(--accent); }
input[type=search] { min-width: 200px; }
label.check { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); cursor: pointer; }
.spacer { flex: 1; }
.count { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- cards / tiles ---- */

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.panel h2 { margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.panel .cap { color: var(--muted); font-size: 12px; margin-bottom: 14px; }

/* One header row per panel: heading and caption on the left, everything that acts on
   the panel — window segment, date picker, expand toggle — pushed to the right. */
.panel-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.panel-head .head-text { flex: 1; min-width: 240px; }

/* Four panels truncate to five rows and each carries this toggle. It sits at caption
   weight rather than button weight: it qualifies what is on screen, it is not the
   panel's primary action. */
.expand {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
  font: inherit; font-size: 12px; font-weight: 500; white-space: nowrap;
  padding: 6px 13px; border-radius: 8px; cursor: pointer;
}
.expand:hover { border-color: var(--accent); color: var(--text); }
.expand[aria-expanded="true"] { border-color: var(--accent); color: var(--text); }

/* The emote lookup revealed inside the top-users panel. Inset and ruled off so it
   reads as a tool attached to the lists below, not another list. */
.lookup {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 14px;
}
.lookup .cap { margin-bottom: 8px; }
/* --surface against the panel's --surface-2 inset, so the card still reads as a card
   inside the lookup rather than melting into it. */
/* Capped to roughly one column of the grid below rather than the panel's full width:
   ten names stretched across 1,200px put the count so far from the name that the row
   stops reading as a pair. */
.lookup .userlist { margin-top: 12px; background: var(--surface); max-width: 420px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .k { color: var(--muted); font-size: 12px; }
.tile .v { font-size: 26px; font-weight: 600; margin-top: 4px; }
.tile .d { font-size: 12px; margin-top: 2px; color: var(--text-2); }
.tile .d.up { color: var(--up); }
.tile .d.down { color: var(--down); }

.note {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 10px 14px; color: var(--text-2); font-size: 12.5px; margin-bottom: 16px;
}

/* ---- emote grid ---- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; display: flex; flex-direction: column; gap: 8px; position: relative;
}
.card:hover { border-color: var(--accent); }
.thumb { height: 104px; display: grid; place-items: center; border-radius: 7px; background: var(--cell); overflow: hidden; }
body.checker .thumb {
  background-image:
    linear-gradient(45deg, #808080 25%, transparent 25%),
    linear-gradient(-45deg, #808080 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #808080 75%),
    linear-gradient(-45deg, transparent 75%, #808080 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: #c0c0c0;
}
body.lightcell .thumb { background: #ffffff; }
.thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.code { font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code a { text-decoration: none; }
.code a:hover { color: var(--accent); }
.meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.chip { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.chip.p7tv { background: rgba(57,135,229,.18); color: #6da7ec; }
.chip.pbttv { background: rgba(230,103,103,.18); color: #e66767; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.rank {
  position: absolute; top: 8px; right: 8px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px;
  font-size: 11px; font-variant-numeric: tabular-nums; display: flex; gap: 4px; align-items: center;
}
.delta { font-weight: 700; font-size: 10px; }
.delta.up { color: var(--up); } .delta.down { color: var(--down); }
.delta.new { color: var(--new); } .delta.same { color: var(--muted); }
.badge-gone {
  position: absolute; top: 8px; left: 8px; background: var(--down); color: #fff;
  font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 4px;
}
.card.gone { outline: 1px solid var(--down); }

.more { display: grid; place-items: center; padding: 24px 0; }
.more button {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-weight: 500; padding: 10px 22px; border-radius: 8px; cursor: pointer;
}
.more button:hover { border-color: var(--accent); }
.empty { color: var(--muted); padding: 48px 0; text-align: center; }

/* ---- tables ---- */

table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data th { color: var(--muted); font-weight: 500; font-size: 12px; }
table.data td { font-variant-numeric: tabular-nums; }
table.data tr:last-child td { border-bottom: 0; }
.scroll-x { overflow-x: auto; }

/* ---- charts ---- */

.chart-wrap { position: relative; }
/* max-width (not width) so the SVG is never scaled UP past its intrinsic size, and
   hidden overflow so nothing can ever paint over the panel heading. */
svg.chart { display: block; max-width: 100%; height: auto; overflow: hidden; }
svg.chart .grid-line { stroke: var(--line); stroke-width: 1; }
svg.chart .axis-line { stroke: var(--baseline); stroke-width: 1; }
svg.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
svg.chart .series-line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
svg.chart .series-area { fill: var(--series-1); opacity: 0.10; }
svg.chart .marker { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
/* One hue for every bar: length already encodes the value. The square patch pins the
   rounded data-end back to the baseline so bars grow from a flat edge. */
svg.chart .bar { fill: var(--series-1); }
svg.chart g rect + rect { fill: var(--series-1); }
svg.chart .end-label { fill: var(--text); font-size: 12px; font-weight: 600; }
svg.chart .hit { fill: transparent; cursor: pointer; }
svg.chart .crosshair { stroke: var(--baseline); stroke-width: 1; }

.tooltip {
  position: absolute; pointer-events: none; opacity: 0; transition: opacity .1s;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 12px; white-space: nowrap; z-index: 5;
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.tooltip .t-key { color: var(--muted); }
.tooltip .t-val { font-weight: 600; font-variant-numeric: tabular-nums; }

/* small multiples */
.multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.mult {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px;
}
.mult .head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.mult .head img { width: 22px; height: 22px; object-fit: contain; }
.mult .head .name { font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mult .figure { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mult .sub { color: var(--muted); font-size: 11px; }

/* ---- chatter lists & lookup ---- */

.userlists { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.userlist { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.userlist .head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.userlist .head img { width: 26px; height: 26px; object-fit: contain; }
.userlist .head .name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userlist .head .tot { color: var(--muted); font-size: 11px; margin-left: auto; white-space: nowrap; }
.userlist ol { margin: 0; padding: 0; list-style: none; counter-reset: u; }
.userlist li {
  display: flex; align-items: center; gap: 8px; padding: 3px 0;
  font-size: 12.5px; border-bottom: 1px solid var(--line);
}
.userlist li:last-child { border-bottom: 0; }
.userlist li .pos { color: var(--muted); font-size: 11px; width: 18px; font-variant-numeric: tabular-nums; }
.userlist li .who {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
  background: none; border: 0; color: var(--text); font: inherit; text-align: left;
  cursor: pointer; padding: 0;
}
.userlist li .who:hover { color: var(--accent); text-decoration: underline; }
.userlist li .n { font-variant-numeric: tabular-nums; color: var(--text-2); }

/* Temporary emotes: one block per stream, each holding its own top-5. The stream
   is the unit of comparison here, not the channel, because a redemption only makes
   sense against the stream it fired during. */
.tempstream { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.tempstream:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.tempstream .bar {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.tempstream .when { font-weight: 600; font-size: 13px; }
.tempstream .vod { color: var(--muted); font-size: 11.5px; }
.tempstream .stat {
  margin-left: auto; display: flex; gap: 14px; font-size: 12px; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.tempstream .stat b { color: var(--text); font-size: 15px; font-weight: 600; }
.tempstream .none { color: var(--muted); font-size: 12.5px; padding: 4px 0 8px; }

/* Date picker. Only one stream renders at a time — five emote cards each with a
   chatter list is already a screenful, and the archive only grows — so moving
   between days is a control rather than a scroll. */
.daypick { display: inline-flex; align-items: center; gap: 6px; }
.daypick button {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  font: inherit; line-height: 1; padding: 7px 11px; border-radius: 8px; cursor: pointer;
}
.daypick button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.daypick button:disabled { opacity: .38; cursor: default; }
.daypick button.latest { font-size: 12px; padding: 7px 10px; }
.calwrap { position: relative; }
.dayfield {
  display: inline-flex; align-items: center; gap: 8px; min-width: 156px;
  justify-content: space-between;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  font: inherit; padding: 6px 10px; border-radius: 8px; cursor: pointer;
}
.dayfield:hover, .dayfield[aria-expanded="true"] { border-color: var(--accent); }
.dayfield .cal-ico { color: var(--muted); font-size: 10px; }

/* Custom calendar.

   The native <input type="date"> popup cannot be styled and its min/max can only fence
   one contiguous span, so it had no way to say which individual days hold data — every
   day looked identical and the only way to find one was to hover each in turn. Here a
   day with data is the only thing that looks interactive. */
.cal {
  position: absolute; top: 100%; right: 0; z-index: 30; margin-top: 6px;
  width: 268px; padding: 10px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
}
.cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.cal-month { flex: 1; text-align: center; font-weight: 600; font-size: 13px; }
.cal-nav {
  background: none; border: 1px solid var(--line); color: var(--text);
  font: inherit; line-height: 1; padding: 4px 9px; border-radius: 7px; cursor: pointer;
}
.cal-nav:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cal-nav:disabled { opacity: .3; cursor: default; }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-dow {
  text-align: center; font-size: 10.5px; color: var(--muted);
  padding: 2px 0 4px; text-transform: uppercase; letter-spacing: .04em;
}
/* Fixed height, not aspect-ratio: an aspect-ratio square inside a `1fr` track sizes
   itself from a width that is itself derived from the content, and the two feed each
   other until the grid bursts out of the popover. `min-width: 0` is the other half —
   grid items default to `min-width: auto`, which refuses to shrink below content. */
.cal-day {
  position: relative; height: 32px; min-width: 0;
  display: grid; place-items: center;
  background: none; border: 1px solid transparent; border-radius: 7px;
  color: var(--text-2); font: inherit; font-size: 12.5px; cursor: default;
}
/* Days with nothing to show are visibly inert: dimmed, no border, no pointer. They
   are still rendered so the month keeps its shape.

   Named `off`, not `empty`: `.empty` is already a global utility with `padding: 48px 0`
   for empty-panel messages, and inheriting it made every calendar row 98px tall. */
.cal-day.off { color: var(--muted); opacity: .32; }
.cal-day.blank { visibility: hidden; }

/* A day that can be opened. Border plus a dot rather than a fill: a filled cell would
   compete with the selected day, and at a glance the ring is what reads as "clickable". */
.cal-day.has {
  color: var(--text); font-weight: 600; cursor: pointer;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.cal-day.has::after {
  content: ""; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.cal-day.has:hover { background: color-mix(in srgb, var(--accent) 26%, transparent); }
.cal-day.sel {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.cal-day.sel::after { background: #fff; }
.cal-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.cal-foot {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 11.5px; text-align: center;
}

/* color-mix is recent; without it the ring still reads, just without the wash. */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .cal-day.has { border-color: var(--accent); background: transparent; }
  .cal-day.has:hover { background: var(--surface); }
}
.userlist .head .dur {
  color: var(--muted); font-size: 10.5px; border: 1px solid var(--line);
  border-radius: 999px; padding: 0 6px; white-space: nowrap;
}

.suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 25; margin-top: 4px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  max-height: 320px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.suggest button {
  display: flex; width: 100%; gap: 8px; align-items: center; text-align: left;
  background: none; border: 0; color: var(--text); font: inherit;
  padding: 7px 10px; cursor: pointer;
}
.suggest button:hover,
.suggest button.active { background: var(--accent); color: #fff; }
.suggest button .n { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.suggest button .pic { width: 20px; height: 20px; object-fit: contain; flex: none; }
.suggest button:hover .n,
.suggest button.active .n { color: #fff; }
/* Marks the channel already on screen. A dot rather than a colour: the highlight
   colour is spoken for by the keyboard cursor, and two meanings on one row read
   as one. */
.suggest button .cur { color: var(--accent); font-size: 10px; width: 8px; flex: none; }
.suggest button.active .cur { color: #fff; }
.suggest .empty-row { padding: 8px 10px; color: var(--muted); font-size: 12.5px; }
/* Sticky: the count of what is hidden is only useful before you scroll, and the
   list scrolls well before it ends. */
.suggest .more {
  position: sticky; bottom: 0; background: var(--surface-2);
  padding: 6px 10px; color: var(--muted); font-size: 11.5px;
  border-top: 1px solid var(--line);
}

/* ---- recap ---- */

.wrapped { background: linear-gradient(180deg,
  color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); }
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .wrapped { background: var(--surface); }
}
.wraphead { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.wraptitle { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.wraprank { margin-left: auto; text-align: right; }
.wraprank b { display: block; font-size: 30px; color: var(--accent); line-height: 1.05; }
.wraprank span { color: var(--muted); font-size: 12px; }
.tile .v .of { font-size: 15px; color: var(--muted); font-weight: 500; }

.emotes { display: flex; flex-wrap: wrap; gap: 8px; }
.emotes .emote {
  display: flex; align-items: center; gap: 7px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12.5px;
}
.emotes .emote img { width: 24px; height: 24px; object-fit: contain; }
.emotes .emote .n { font-variant-numeric: tabular-nums; color: var(--text-2); }

/* Hour of day. One bar per hour, length the only encoding — no colour ramp, because
   the length already says it and a ramp would double-encode. */
.hours {
  display: grid; grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 3px; height: 130px; align-items: end;
}
.hourcol { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.hourbar {
  background: var(--series-1); border-radius: 3px 3px 0 0; min-height: 2px;
}
.hourcol:hover .hourbar { background: var(--accent); }
.hourlab { text-align: center; font-size: 9.5px; color: var(--muted); padding-top: 4px; height: 14px; }

.siglist { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.sig { background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; }
.sighead { display: flex; align-items: center; gap: 8px; }
.sighead img { width: 26px; height: 26px; object-fit: contain; }
.sighead .name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sighead .ratio { margin-left: auto; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.sigbar { height: 5px; background: var(--cell); border-radius: 3px; margin: 9px 0 6px; overflow: hidden; }
.sigfill { display: block; height: 100%; background: var(--accent); }
.sigsub { color: var(--muted); font-size: 11.5px; }

.catlist { display: flex; flex-direction: column; gap: 7px; }
.catrow { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.catrow .nm { width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catrow .bar { flex: 1; height: 9px; background: var(--cell); border-radius: 5px; overflow: hidden; }
.catrow .fill { display: block; height: 100%; background: var(--series-3); }
.catrow .n { width: 62px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }

#recapUser {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  font: inherit; padding: 7px 10px; border-radius: 8px; outline: none; min-width: 150px;
}
#recapUser:focus { border-color: var(--accent); }

/* ---- personal list ---- */

.pill {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  font: inherit; padding: 7px 12px; border-radius: 8px; cursor: pointer;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill.primary:hover { filter: brightness(1.1); color: #fff; }

.picklist {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px;
  max-height: 340px; overflow-y: auto;
}
.pickitem {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 11px; font-size: 13px;
}
.pickitem:hover { border-color: var(--accent); }
/* A ticked row is outlined rather than filled: the list can be long, and a wall of
   solid accent colour stops the ticks reading as individual choices. */
.pickitem.on { border-color: var(--accent); }
.pickitem input { accent-color: var(--accent); width: 15px; height: 15px; }
.pickitem .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pickitem .meta { margin-left: auto; color: var(--muted); font-size: 11.5px; white-space: nowrap; }

.minecard {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px;
}
.minecard .head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.minecard .head .nm { font-weight: 600; font-size: 14px; text-decoration: none; }
.minecard .head .nm:hover { color: var(--accent); text-decoration: underline; }
.minecard .head .meta { color: var(--muted); font-size: 12px; }
.minecard .head .drop { margin-left: auto; font-size: 12px; padding: 4px 10px; }

.chanline { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.chanline .emotes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chanline .emote {
  display: flex; align-items: center; gap: 7px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: 12.5px;
}
.chanline .emote img { width: 22px; height: 22px; object-fit: contain; }
.chanline .emote .n { font-variant-numeric: tabular-nums; color: var(--text-2); }
.lbl {
  color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 2px;
}
.minecard .head .recap { text-decoration: none; font-size: 12px; padding: 4px 10px; margin-left: auto; }
.minecard .head .drop { margin-left: 8px; }

.youline { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.youline.none { color: var(--muted); font-size: 12.5px; }
.youline .yourank { font-size: 13px; }
.youline .yourank b { font-size: 18px; color: var(--accent); }
.youline .yourank .muted { color: var(--muted); font-size: 12px; }
.youline .youstats { color: var(--text-2); font-size: 12px; margin-top: 2px; }
.youline .emotes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.youline .emote {
  display: flex; align-items: center; gap: 7px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: 12.5px;
}
.youline .emote img { width: 22px; height: 22px; object-fit: contain; }
.youline .emote .n { font-variant-numeric: tabular-nums; color: var(--text-2); }

.reqrow { display: flex; gap: 8px; flex-wrap: wrap; max-width: 460px; }
.reqrow input { flex: 1; min-width: 200px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  font: inherit; padding: 7px 10px; border-radius: 8px; outline: none; }
.reqrow input:focus { border-color: var(--accent); }
.reqlist { display: flex; flex-wrap: wrap; gap: 7px; }
.reqchip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px;
}
.reqchip .n {
  color: var(--muted); font-variant-numeric: tabular-nums; font-size: 11px;
  border-left: 1px solid var(--line); padding-left: 7px;
}

/* Channel picker. A <select> was adequate for three channels; the watchlist is
   designed to hold many, and a native dropdown offers no way to narrow the list. */
.picker { display: flex; align-items: center; gap: 8px; }
.picker > label { color: var(--text-2); }
.pick-field { position: relative; min-width: 300px; }
.pick-field input { width: 100%; min-width: 0; }

.profile { margin-top: 14px; }
.profile .who { font-size: 17px; font-weight: 600; }
.profile .emotes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.profile .emote {
  display: flex; align-items: center; gap: 7px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12.5px;
}
.profile .emote img { width: 24px; height: 24px; object-fit: contain; }
.profile .emote .n { font-variant-numeric: tabular-nums; color: var(--text-2); }
