/* ──────────────────────────────────────────────────────────────────────────────
   RustCraft "Void Forge": your panel (the bell next to your name)
   The Player Hub's frame (profile.css) turned into a comms deck: Overview,
   Messages, a conversation, Notifications, Players and the Bug Bounty.
   --rc is your rank colour, set on the window. Loaded after depth.css.
   ────────────────────────────────────────────────────────────────────────────── */

.settings.up.pf-hub { width: min(76rem, 100%); }
/* captions: the site's --steel-3 (#77729b) is under 4.5:1 on every raised surface here, so the panel's is
   lighter (still dimmer than --steel-2, so captions stay secondary); placeholders read like hints */
.settings.up { --steel-3: #9893b8; }
.up ::placeholder { color: var(--steel-2); }
/* the banner line, and the rank colours that were under 4.5:1 on their dark tag (Chromium, Titanium+): a little
   lighter here, with or without motion */
.up .pf-banner-tag { color: rgba(255, 222, 196, 0.85); }
.up .rankbox.rk-chromium .rk-t { color: #c07dff; }
.up .rankbox.rk-titanium_plus .rk-t { color: #8f80ff; }
.set-top.up-banner { min-height: 10.5rem; flex-wrap: wrap; }
.up-banner .pf-top-acts .btn { white-space: nowrap; }   /* (on a narrow window they drop under your name instead of squashing) */
.up.pf-hub .set-body { min-height: 36rem; }
/* the open page in the side menu takes your rank colour (depth.css's plate stays) */
.up.pf-hub .set-nav [data-pane].on:not(.up-bounty) { background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 24%, transparent), rgba(32, 25, 56, 0.9)); color: #fff; }
.up.pf-hub .set-nav .up-bounty.on { color: #1a0b02; background: linear-gradient(180deg, #ffb062, var(--rust) 45%, #d9500b); }
.up.pf-hub .set-nav .up-bounty.on svg { color: inherit; filter: none; }
.up.pf-hub .set-nav .up-bounty.on::before { display: none; }
.up.pf-hub .set-nav .up-bounty svg { opacity: 1; }
.up .up-count { box-shadow: 0 0 10px -2px rgba(255, 107, 26, 0.9); }
.up .pf-chip.hot b { color: #fff; }
.up mark { background: color-mix(in srgb, var(--rc) 45%, transparent); color: #fff; border-radius: 0.2rem; padding: 0 0.1rem; }
/* (.btn's display rule would otherwise beat [hidden]: "Mark all read" and "Clear all" hide when there's nothing to do) */
.up .btn[hidden] { display: none; }
/* a page's heading takes focus when a redraw removes the button that had it (for screen readers, no ring) */
.up .set-h[tabindex="-1"]:focus { outline: none; }

/* ── pictures with a "on the site now" dot ── */
.up-av { position: relative; flex: none; display: inline-grid; line-height: 0; }
.up-av > .avatar { margin: 0; }
.up-av.lg > .avatar { width: 3.1rem; height: 3.1rem; }
.up-dot { position: absolute; right: -2px; bottom: -2px; width: 0.72rem; height: 0.72rem; border-radius: 50%; background: #4dffa0; border: 2px solid #0b0916; box-shadow: 0 0 8px #4dffa0; }
.up-av.lg .up-dot { width: 0.85rem; height: 0.85rem; right: 0; bottom: 0; }
.up-on { margin-left: 0.45rem; padding: 0.18rem 0.42rem; border-radius: 99px; font: 700 0.55rem/1 var(--f-hud); letter-spacing: 0.12em; text-transform: uppercase; color: #a6ffcf; background: rgba(77, 255, 160, 0.1); border: 1px solid rgba(77, 255, 160, 0.3); }

/* ── rows: conversations, alerts, contacts ── */
.up .up-row { position: relative; border-radius: 0.75rem; background: linear-gradient(180deg, rgba(26, 20, 46, 0.72), rgba(12, 10, 22, 0.8)); border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 0 rgba(6, 5, 12, 0.9);
  transition: border-color 0.2s, background 0.25s, box-shadow 0.3s var(--glide), transform 0.45s var(--spring); }
.up .up-row:hover, .up .up-row:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, var(--rc) 50%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 3px 0 rgba(6, 5, 12, 0.9), 0 14px 26px -16px rgba(0, 0, 0, 0.95), 0 0 24px -12px var(--rc); }
.up .up-row:active { transform: translateY(0); }
.up .up-row.unread { border-color: color-mix(in srgb, var(--rc) 55%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 16%, transparent), rgba(16, 12, 30, 0.85) 60%); }
.up .up-row.unread::before { content: ""; position: absolute; left: -1px; top: 0.6rem; bottom: 0.6rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.up div.up-row { cursor: default; }   /* (an alert with nowhere to go is text, not a button) */
.up div.up-row:hover { transform: none; }
.up .up-pill { box-shadow: 0 0 12px -2px rgba(255, 107, 26, 0.9); }
.up-tick { display: inline-flex; vertical-align: -0.12em; margin-right: 0.25rem; color: var(--steel-3); }
.up-tick svg { width: 0.85rem; height: 0.85rem; }
.up-tick.seen { color: var(--ion); }
.up-new-tag { font: 700 0.55rem/1 var(--f-hud); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.up-sum { margin: -0.35rem 0 0.75rem; min-height: 1em; font-size: 0.78rem; color: var(--steel-3); }
.up .up-empty { background: rgba(8, 6, 16, 0.45); border-radius: 0.75rem; }

/* alert kinds */
.up-ico.k-reply { background: rgba(62, 230, 255, 0.12); color: var(--ion); }
.up-ico.k-rank { background: rgba(255, 181, 71, 0.14); color: var(--ember); }
.up-ico.k-bounty, .up-ico.k-report { background: rgba(139, 92, 246, 0.18); color: #c4b2ff; }
.up .up-ico { box-shadow: inset 0 0 0 1px currentColor; }
.note .up-ico { box-shadow: inset 0 0 0 1px currentColor; }

/* an alert, with its dismiss button */
.up-nrow { position: relative; }
.up-nrow > .up-row { padding-right: 3rem; }
/* (in full at rest too: a dimmed X was under 3:1 against the row) */
.up-x { position: absolute; right: 0.55rem; top: 50%; translate: 0 -50%; z-index: 1; width: 2rem; height: 2rem; padding: 0; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid transparent; background: none; color: var(--steel-2); cursor: pointer; transition: opacity 0.2s, color 0.2s, background 0.2s, border-color 0.2s; }
.up-x svg { width: 0.85rem; height: 0.85rem; }
.up-x:hover, .up-x:focus-visible { color: #fff; background: rgba(226, 74, 74, 0.18); border-color: rgba(226, 74, 74, 0.5); }
/* busy: dismissing (aria-disabled, so it keeps keyboard focus) */
.up-x[aria-disabled="true"] { cursor: default; opacity: 0.45; }
/* on a touch screen the whole right edge of an alert is its dismiss button (the row's 3rem right padding
   keeps it clear), so a near miss never opens the alert and closes the panel instead */
@media (hover: none), (max-width: 640px) { .up-x { top: 0; bottom: 0; right: 0; translate: none; width: 3rem; height: auto; border-radius: 0 0.75rem 0.75rem 0; } }

/* a line for each day */
.up-day { display: flex; align-items: center; gap: 0.75rem; margin: 0.45rem 0 0.05rem; font: 600 0.58rem/1 var(--f-hud); letter-spacing: 0.22em; text-transform: uppercase; color: var(--steel-2); }
.up-day::before, .up-day::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.up-day span { padding: 0.32rem 0.6rem; border-radius: 99px; background: rgba(8, 6, 16, 0.7); border: 1px solid var(--line); }
.up-day:first-child { margin-top: 0; }

/* search, filters and the actions above a list */
.up-tools { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 0.8rem; }
.up-tools .up-q { flex: 1 1 15rem; min-width: 0; }
.up-tools .seg button small { margin-left: 0.35rem; font: 700 0.62rem/1 var(--f-hud); opacity: 0.8; }
.up-tools .seg button small:empty { display: none; }
.up-tools .btn.up-mini svg, .up-head .btn svg, .up-acts .btn svg { width: 0.95rem; height: 0.95rem; flex: none; }
.up .btn.up-mini, .up .up-new { gap: 0.4rem; }

/* ── a conversation ── */
.up .up-thread-head { gap: 0.6rem 0.9rem; }
.up-with-t { display: grid; gap: 0.15rem; min-width: 0; }
.up-with-t small { font-size: 0.74rem; color: var(--steel-3); }
.up-with-t small.on { color: #a6ffcf; }
.up-thread-wrap { position: relative; }
.up .up-thread { height: min(28rem, 54vh); gap: 0.45rem; padding: 1rem 1rem 0.8rem; border-radius: 0.9rem; border-color: color-mix(in srgb, var(--rc) 20%, var(--line));
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--rc) 9%, transparent), transparent 60%), radial-gradient(90% 60% at 50% 110%, rgba(139, 92, 246, 0.1), transparent 70%), rgba(6, 5, 12, 0.6);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.55); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.up .up-msg { position: relative; max-width: min(78%, 34rem); border-radius: 1rem 1rem 1rem 0.3rem; padding: 0.5rem 0.8rem 0.45rem;
  background: linear-gradient(180deg, rgba(34, 27, 60, 0.95), rgba(22, 17, 40, 0.95)); border-color: rgba(196, 181, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 0 rgba(6, 5, 12, 0.85), 0 8px 16px -12px rgba(0, 0, 0, 0.9); }
.up .up-msg.fresh { animation: upPop 0.4s var(--spring) backwards; }
.up .up-msg .vh { -webkit-user-select: none; user-select: none; }   /* (who sent it is for screen readers: copying a message leaves it out) */
.up .up-msg.mine { border-radius: 1rem 1rem 0.3rem 1rem; border-color: color-mix(in srgb, var(--rc) 45%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 34%, #1c1530), color-mix(in srgb, var(--rc) 18%, #140f24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 0 color-mix(in srgb, var(--rc) 30%, #06050c), 0 8px 18px -12px var(--rc); }
/* (a group: tight together, the corners on the inside squared off) */
.up .up-msg.cont { margin-top: -0.25rem; border-top-left-radius: 0.3rem; }
.up .up-msg.more { border-bottom-left-radius: 0.3rem; }
.up .up-msg.mine.cont { border-top-left-radius: 1rem; border-top-right-radius: 0.3rem; }
.up .up-msg.mine.more { border-bottom-left-radius: 1rem; border-bottom-right-radius: 0.3rem; }
.up .up-msg time { font: 600 0.6rem/1 var(--f-hud); letter-spacing: 0.08em; margin-top: 0.3rem; color: var(--steel-2); }
.up .up-msg.mine time { color: color-mix(in srgb, var(--rc) 40%, #c9c0ff); }
.up-seen { display: flex; align-items: center; justify-content: flex-end; gap: 0.25rem; margin-top: 0.2rem; font-size: 0.66rem; color: var(--steel-2); }
.up-seen svg { width: 0.75rem; height: 0.75rem; }
.up-seen.on { color: var(--ion); }
.up .up-msg.mine .up-seen:not(.on) { color: color-mix(in srgb, var(--rc) 40%, #c9c0ff); }   /* (readable on your own bubble) */
@keyframes upPop { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
.up-jump { position: absolute; left: 50%; bottom: 0.8rem; translate: -50% 0; padding: 0.45rem 0.9rem; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--rc) 60%, transparent);
  background: rgba(10, 8, 20, 0.92); color: #fff; font: 700 0.76rem/1 var(--f-body); cursor: pointer; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.9), 0 0 18px -6px var(--rc); }
.up-jump[hidden] { display: none; }

/* the message box: grows as you type, with a counter */
.up .up-compose { align-items: stretch; gap: 0.6rem; margin-top: 0.8rem; }
.up-ta { flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: 0.8rem; border: 1px solid var(--line-2); background: rgba(6, 5, 12, 0.7);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55); transition: border-color 0.2s, box-shadow 0.2s; }
.up-ta:focus-within { border-color: color-mix(in srgb, var(--rc) 70%, transparent); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 0 3px color-mix(in srgb, var(--rc) 18%, transparent); }
.up .up-ta textarea { flex: none; width: 100%; min-height: 2.7rem; max-height: 11rem; padding: 0.7rem 0.85rem 0.25rem; border: 0; border-radius: 0.8rem 0.8rem 0 0; background: none; box-shadow: none; resize: none; color: var(--steel); font: 500 0.95rem/1.45 var(--f-body); }
.up .up-ta textarea:focus { outline: none; box-shadow: none; }
.up-ta-foot { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0 0.85rem 0.45rem; font-size: 0.68rem; color: var(--steel-3); }
.up-cc { font: 600 0.62rem/1.3 var(--f-hud); letter-spacing: 0.06em; color: var(--steel-3); font-variant-numeric: tabular-nums; }
.up-cc.warn { color: var(--ember); }
.up-cc.max { color: var(--bad); }
.up .up-compose > .btn { align-self: stretch; min-height: 3.2rem; gap: 0.45rem; padding: 0 1.2rem; }
.up .up-compose > .btn svg { width: 1.05rem; height: 1.05rem; }
.btn.up-mini.danger { border-color: rgba(226, 74, 74, 0.6); }   /* (white text, from .btn.danger: pink was under 4.5:1 on the red) */

/* ── a new message ── */
.up-composer { display: grid; gap: 0.4rem; }
.up-lbl { font: 700 0.68rem/1 var(--f-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel-2); }
.up-to { display: grid; gap: 0.35rem; margin: 0.2rem 0 0.2rem; }
.up-composer .auth-field { position: relative; }
.up-composer .auth-field .up-cc { justify-self: end; }
.up-recent { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0.2rem 0 0.1rem; }
.up-recent[hidden] { display: none; }
.up-recent > div { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.up-pick { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.22rem 0.7rem 0.22rem 0.24rem; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(8, 6, 16, 0.55);
  color: var(--steel); font: 600 0.8rem/1 var(--f-body); cursor: pointer; transition: border-color 0.2s, box-shadow 0.25s, transform 0.4s var(--spring); }
.up-pick .avatar { width: 1.6rem; height: 1.6rem; }
.up-pick:hover, .up-pick:focus-visible { border-color: color-mix(in srgb, var(--rc) 60%, transparent); box-shadow: 0 0 18px -8px var(--rc); transform: translateY(-1px); }
/* name suggestions (New message, Find a player): the row never grows past its card, and a long ranked name ends in "…" */
.up .pf-hits { grid-template-columns: minmax(0, 1fr); }
.up .pf-hit b { display: block; text-overflow: ellipsis; }

/* ── overview and players: two columns of cards (a wide one and a narrow one) ── */
.up-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.up-cols.up-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.up-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.up-col > .set-card + .set-card { margin-top: 0; }
.up-cols .up-list { gap: 0.4rem; }
.up-cols .up-row { padding: 0.6rem 0.75rem; }
.up-faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr)); gap: 0.5rem; }
.up-face { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; min-width: 0; padding: 0.6rem 0.3rem 0.5rem; border-radius: 0.8rem; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 20, 46, 0.7), rgba(10, 8, 20, 0.75)); color: var(--steel); font: inherit; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 0 rgba(6, 5, 12, 0.9); transition: border-color 0.2s, box-shadow 0.3s, transform 0.45s var(--spring); }
.up-face small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.72rem; font-weight: 600; }
.up-face:hover, .up-face:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--rc) 55%, transparent); box-shadow: 0 3px 0 rgba(6, 5, 12, 0.9), 0 0 22px -8px var(--rc); }
.up-h-n { margin-left: auto; min-width: 1.5rem; padding: 0.22rem 0.45rem; border-radius: 99px; text-align: center; font: 700 0.7rem/1 var(--f-hud); letter-spacing: 0; color: #06120c; background: #4dffa0; box-shadow: 0 0 12px -2px #4dffa0; }
.up-h-n:empty { display: none; }

/* the bug bounty card: your reports by status */
.up-bar { display: flex; gap: 2px; height: 0.65rem; margin: 0.1rem 0 0.75rem; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6); }
.up-bar i { display: block; min-width: 0.4rem; height: 100%; }
.up-bar .b-new, .up-legend .b-new::before { background: #c9c0ff; }
.up-bar .b-triaged, .up-legend .b-triaged::before { background: #62f0e4; box-shadow: 0 0 10px rgba(98, 240, 228, 0.6); }
.up-bar .b-fixed, .up-legend .b-fixed::before { background: var(--ok); box-shadow: 0 0 10px rgba(74, 222, 107, 0.6); }
.up-bar .b-closed, .up-legend .b-closed::before { background: rgba(255, 255, 255, 0.22); }
.up-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.76rem; color: var(--steel-2); }
.up-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.up-legend span::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; }
.up-legend b { color: #fff; font: 700 0.78rem/1 var(--f-hud); }
.up-c-bounty .pf-fine { overflow-wrap: anywhere; }   /* (a title with no spaces, like a pasted URL, wraps inside the card) */

/* the on/off switches */
.up-prefs { display: grid; gap: 0.5rem; }
.up-tog { display: flex; align-items: center; gap: 0.8rem; width: 100%; padding: 0.65rem 0.75rem; border-radius: 0.75rem; border: 1px solid var(--line); text-align: left;
  background: rgba(8, 6, 16, 0.55); color: var(--steel); font: inherit; cursor: pointer; transition: border-color 0.2s; }
.up-tog:hover, .up-tog:focus-visible { border-color: color-mix(in srgb, var(--rc) 45%, transparent); }
.up-tog > span { flex: 1; min-width: 0; display: grid; gap: 0.18rem; }
.up-tog b { font-size: 0.9rem; color: #fff; }
.up-tog small { font-size: 0.75rem; line-height: 1.35; color: var(--steel-3); }
.up-tog i { position: relative; flex: none; width: 2.7rem; height: 1.5rem; border-radius: 99px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6); transition: background 0.25s, box-shadow 0.25s, border-color 0.25s; }
.up-tog i::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%;
  background: linear-gradient(180deg, #e8e4ff, #9d97b8); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); transition: transform 0.45s var(--spring), background 0.2s; }
.up-tog[aria-checked="true"] i { background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 80%, #fff), var(--rc)); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 14px -2px var(--rc); }
.up-tog[aria-checked="true"] i::after { transform: translateX(1.2rem); background: #fff; }

/* ── players ── */
.up-prow { display: flex; align-items: center; gap: 0.45rem; }
.up-prow > .up-row { flex: 1; min-width: 0; }
.up-prow > .btn.up-mini { flex: none; min-width: 2.4rem; padding: 0 0.6rem; }
.up-brow { padding: 0.55rem 0.7rem; border-radius: 0.75rem; border: 1px solid var(--line); background: rgba(8, 6, 16, 0.5); gap: 0.7rem; }
.up-brow .up-row-main b { font-weight: 600; }

/* ── bug bounty: the stat strip and each report's road ── */
.pf-stats.up-stats4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* the stat tiles (the panel's only: profile.css stays as it is): readable labels, and when a tile is
   too narrow for its label beside the icon, the icon goes */
.up .pf-tile small { color: var(--steel-2); }
.up .pf-tile { container-type: inline-size; }
@container (max-width: 6.5rem) {
  .up .pf-tile-ico { display: none; }
  .up .pf-tile small { padding-right: 0; }
}
.up-rep-no { font: 700 0.72rem/1 var(--f-hud); color: var(--steel-3); letter-spacing: 0.04em; }
.up-track { list-style: none; flex-basis: 100%; margin: 0.5rem 0 0.2rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); --tc: #62f0e4; }
.up-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; min-width: 0; text-align: center; }
.up-track li + li::before { content: ""; position: absolute; top: calc(0.4rem - 1px); right: 50%; width: 100%; height: 2px; background: rgba(255, 255, 255, 0.08); }
.up-track li.got + li.got::before { background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 40%, transparent), var(--tc)); box-shadow: 0 0 8px color-mix(in srgb, var(--tc) 60%, transparent); }
.up-track i { position: relative; z-index: 1; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #0c0a18; border: 2px solid rgba(255, 255, 255, 0.18); }
.up-track li.got i { background: var(--tc); border-color: rgba(255, 255, 255, 0.35); box-shadow: 0 0 10px var(--tc); }
.up-track li.here i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--tc) 25%, transparent), 0 0 16px var(--tc); }
.up-track span { font: 700 0.58rem/1.2 var(--f-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel-3); }
.up-track li.got span { color: color-mix(in srgb, var(--tc) 75%, #fff); }
.up-rep:has(.s-fixed) .up-track { --tc: var(--ok); }
.up-track.closed { --tc: #9d97b8; }
.up .bb-mine-row { padding: 0.75rem 0.85rem; border-radius: 0.75rem; border: 1px solid var(--line); background: rgba(8, 6, 16, 0.45); }

/* ── smaller screens ── */
@media (max-width: 1100px) {
  .up-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
@media (max-width: 900px) {
  .pf-stats.up-stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-stats.up-stats4 .pf-tile:nth-child(3) { border-left: 0; }
  .pf-stats.up-stats4 .pf-tile:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .up-cols, .up-cols.up-people { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  /* the side menu becomes one row you can swipe (and stays one row high, however short the page) */
  .up.pf-hub .set-body { min-height: 0; grid-template-rows: auto 1fr; align-content: start; }
  .up.pf-hub .set-nav { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 0.3rem; overflow-x: auto; padding: 0.6rem 0.75rem; scrollbar-width: none; }
  .up.pf-hub .set-nav::-webkit-scrollbar { display: none; }
  .up.pf-hub .set-nav .set-grp { display: none; }
  .up.pf-hub .set-nav [data-pane], .up.pf-hub .set-nav .up-settings { flex: none; white-space: nowrap; margin: 0; }
  .up.pf-hub .set-nav [data-pane].on:not(.up-bounty), .up.pf-hub .set-nav [data-pane]:not(.up-bounty):hover { transform: none; }
  .up .set-nav .up-bounty { margin-top: 0; min-height: 2.35rem; padding: 0 0.75rem; font-size: 0.85rem; }
  .set-top.up-banner .set-id-t > p { display: none; }
  .up .up-thread { height: min(26rem, 58vh); padding: 0.75rem 0.7rem 0.6rem; }
  .up .up-msg { max-width: 88%; }
  .up .up-compose { flex-direction: row; }
  .up .up-compose > .btn { padding: 0 0.9rem; min-height: 0; }
  .up-hint { display: none; }
  .up-ta-foot { justify-content: flex-end; }
  /* back and the actions on one line, who it's with under them */
  .up .up-thread-head .forum-back { order: 0; }
  .up .up-thread-head .up-acts { order: 1; margin-left: auto; }
  .up .up-thread-head .up-with { order: 2; flex: 1 1 100%; }
  .pf-stats.up-stats4 .pf-tile:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .pf-stats.up-stats4 .pf-tile:nth-child(-n + 2) { border-top: 0; }
  .pf-stats.up-stats4 .pf-tile:nth-child(even) { border-left: 1px solid var(--line); }
  .up-tools .seg { max-width: 100%; }
  .up-faces { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .up .up-msg.fresh { animation: none; }
  .up .up-row:hover, .up .up-row:focus-visible, .up-face:hover, .up-face:focus-visible, .up-pick:hover { transform: none; }
}

/* bug bounty: while a report uploads, the file box and Remove buttons are off, and look it; Submit is
   aria-disabled (it keeps keyboard focus) and looks just as it does when it's off */
.up .btn.bb-btn[aria-disabled="true"] { opacity: 1; background: rgba(255, 255, 255, 0.12); border-color: transparent; color: var(--steel-3); box-shadow: none; transform: none; cursor: not-allowed; }
.up .bb-files input:disabled, .up .bb-files input:disabled::file-selector-button { cursor: default; opacity: 0.5; }
.up .bb-filelist button:disabled { cursor: default; opacity: 0.45; }
/* a report on its way: its track and text are locked, and look it */
.up .bb-track[aria-disabled="true"] { cursor: default; opacity: 0.55; }
.up .bb-track[aria-disabled="true"]:not(.on):hover { border-color: var(--line-2); }
.up .bb-card input[type=text]:read-only, .up .bb-card textarea:read-only { cursor: default; opacity: 0.7; }
