/* Self-hosted so no visitor data goes to Google Fonts. License: /fonts/OFL.txt */
@font-face {
  font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2');
}

:root {
  --bg: #0d0f14;
  --bg-2: #12151c;
  --panel: #161a22;
  --panel-2: #1c212b;
  --card: #1f2430;
  --card-hover: #252b39;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #e8eaf0;
  --muted: #9097a7;
  --faint: #8f96a8;
  --accent: #6d8bff;
  --accent-2: #8aa1ff;
  --accent-btn: #4a62d9;      /* white text on it: 5.2:1 */
  --accent-btn-hover: #5068e3;
  --danger: #ff6b6b;

  --feature: #bb97ff;
  --qol: #5aa9ff;
  --map: #ffa94d;

  --s-not_started: #a0a7b7;
  --s-in_progress: #ffc145;
  --s-complete: #3ddc97;
  --s-incomplete: #ff7a7a;
  --s-resolved: #ff79c6;

  --b-reported: #a99bd6;
  --b-confirmed: #5aa9ff;
  --b-investigating: #ffc145;
  --b-fixing: #ff9f43;
  --b-fixed: #3ddc97;
  --b-wont_fix: #a0a7b7;
  --b-roblox_issue: #4fd1c5;
  --sev-low: #7fb0c4;
  --sev-medium: #ffc145;
  --sev-high: #ff8a4c;
  --sev-critical: #ff6b82;

  /* Suggestions */
  --sg-open: #5aa9ff;
  --sg-considering: #ffc145;
  --sg-planned: #bb97ff;
  --sg-shipped: #3ddc97;
  --sg-declined: #a0a7b7;
  --sg-up: #ff8a4c;
  --sg-down: #8aa1ff;

  /* Release stages: A = alpha, B = beta, V = released */
  --stage-a: #ffa94d;
  --stage-b: #5aa9ff;
  --stage-v: #3ddc97;

  /* Studio rank badges */
  --r-owner: #5c9bff;
  --r-co_owner: #7fb0ff;
  --r-sr_dev: #bb97ff;
  --r-developer: #3ddc97;
  --r-qa_manager: #ff6fb5;
  --r-qa_tester: #ffa94d;
  --r-contractor: #e6c84f;
  --r-visitor: #9aa2b3;

  --radius: 14px;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 24px rgba(0,0,0,0.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { background-color: var(--bg); }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(109,139,255,0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(180,140,255,0.07), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
a { color: var(--accent-2); }
.spacer { flex: 1; }
.hint { color: var(--muted); font-size: 12.5px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 8px;
  background: var(--accent-btn); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
#main-content:focus { outline: none; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 28px 8px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
/* Thin white outline so the black wolf stays visible on the dark background */
.logo { height: 50px; width: auto; flex: none; display: block; filter: drop-shadow(0 0 .6px #fff) drop-shadow(0 0 .6px #fff) drop-shadow(0 0 .6px #fff); }
.back-link .logo { height: 36px; margin-right: 6px; }
.brand h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer;
  font-weight: 500; transition: background .15s, border-color .15s, transform .05s;
  white-space: nowrap;
}
.btn:hover { background: var(--card-hover); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent-btn); border-color: transparent; color: #fff; }
.btn.primary:hover { background: var(--accent-btn-hover); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: rgba(255,107,107,0.1); border-color: rgba(255,107,107,0.3); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.roblox { background: #fff; color: #111; border-color: transparent; font-weight: 600; }
.btn.roblox:hover { background: #e9ebef; }
.icon-btn {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  background: none; border: none; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--card-hover); color: var(--text); }
.icon-btn:disabled { opacity: .35; cursor: default; background: none; }

.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel);
}
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--card); object-fit: cover; flex: none; display:grid; place-items:center; font-weight:600; font-size:12px; }
.user-chip .who { line-height: 1.15; }
.user-chip .who { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.user-chip .who b { font-size: 13px; font-weight: 600; }

.rank-badge {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px;
  font-size: 10.5px; font-weight: 650; letter-spacing: .02em; white-space: nowrap;
  color: color-mix(in srgb, var(--c) 88%, white);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.by { display: inline-flex; align-items: center; gap: 5px; color: var(--faint); font-size: 11.5px; }
.dev-logins { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 28px 16px;
}
.search {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--muted); width: 260px; max-width: 100%;
}
.search:focus-within { border-color: var(--accent); }
.search input { border: none; outline: none; background: none; flex: 1; min-width: 0; color: var(--text); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  color: var(--muted); font-weight: 500; font-size: 13px;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--panel-2); color: var(--text); border-color: var(--line-2); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.stats { margin-left: auto; display: flex; gap: 18px; color: var(--muted); font-size: 13px; }
.stats b { color: var(--text); font-weight: 600; }

/* ---------- Board ---------- */
.board {
  flex: 1; display: flex; gap: 16px; align-items: flex-start;
  padding: 4px 28px 28px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
}
.board::-webkit-scrollbar { height: 10px; }
.board::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; }
.loading { color: var(--muted); padding: 40px; }

.column {
  flex: 0 0 300px; max-height: 100%; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line); border-radius: var(--radius);
  scroll-snap-align: start; backdrop-filter: blur(8px);
}
.column.dragging-col { opacity: .5; }
.col-head { padding: 14px 14px 10px; }
.col-title-row { display: flex; align-items: center; gap: 8px; }
.col-title { font-weight: 600; font-size: 14.5px; margin: 0; flex: 1; min-width: 0; }
.count {
  font-size: 12px; color: var(--muted); background: var(--panel-2);
  padding: 1px 8px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.col-desc { color: var(--faint); font-size: 12px; margin: 3px 0 0; }
.col-progress { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.bar { flex: 1; height: 4px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--s-complete); border-radius: 4px; transition: width .3s; }

.cards {
  flex: 1; overflow-y: auto; padding: 2px 10px 10px; display: flex; flex-direction: column; gap: 8px;
  min-height: 40px;
}
.cards::-webkit-scrollbar { width: 6px; }
.cards::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
.column.drop-target .cards { background: rgba(109,139,255,0.05); border-radius: 10px; }
.empty-col { color: var(--faint); font-size: 12.5px; text-align: center; padding: 18px 8px; border: 1px dashed var(--line-2); border-radius: 10px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 12px; cursor: pointer; box-shadow: var(--shadow);
  transition: background .15s, border-color .15s, transform .15s;
  text-align: left; width: 100%;
}
.card:hover { background: var(--card-hover); border-color: var(--line-2); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card.dragging { opacity: .35; }
.card .title { font-weight: 500; font-size: 14px; margin: 8px 0 0; }
.card.done .title { color: var(--muted); }
.card-meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; color: var(--faint); font-size: 12px; }
.card-meta .mini { display: inline-flex; align-items: center; gap: 4px; }
.card-meta .mini.full { color: var(--s-complete); }
.placeholder { height: 4px; border-radius: 4px; background: var(--accent); margin: -2px 0; }

.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 6px; font-size: 11.5px; font-weight: 600;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: color-mix(in srgb, var(--c) 85%, white);
}
.status {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px;
  border-radius: 6px; font-size: 11.5px; font-weight: 600; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.status.k-active::before { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }

.add-card {
  margin: 0 10px 10px; height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 10px;
  border-radius: 9px; background: none; border: none; color: var(--muted); cursor: pointer; font-weight: 500;
}
.add-card:hover { background: var(--panel-2); color: var(--text); }
.add-col {
  flex: 0 0 260px; height: 48px; border: 1px dashed var(--line-2); border-radius: var(--radius);
  background: none; color: var(--muted); cursor: pointer; font-weight: 500;
}
.add-col:hover { color: var(--text); border-color: var(--muted); }

/* ---------- Dialogs ---------- */
dialog { border: none; padding: 0; color: var(--text); background: transparent; }
dialog::backdrop { background: rgba(5,6,10,0.65); backdrop-filter: blur(3px); }
.modal[open] {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5); display: flex; flex-direction: column;
  animation: pop .16s ease-out;
}
.modal.small[open] { width: min(420px, calc(100vw - 32px)); }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 0; }
.modal-head h2 { margin: 0; font-size: 19px; font-weight: 650; flex: 1; letter-spacing: -0.01em; }
.modal-body { padding: 16px 20px 20px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.modal-foot .spacer { flex: 1; }
.crumb { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }
.section-label { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 18px 0 8px; }
.desc { white-space: pre-wrap; color: #cfd3dc; }
.desc.empty { color: var(--faint); font-style: italic; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.checklist li:hover { background: var(--panel-2); }
.checklist li.done span { color: var(--faint); text-decoration: line-through; }
.checklist input[type=checkbox] { accent-color: var(--s-complete); width: 16px; height: 16px; }
.checklist input[type=text] { flex: 1; }
.check-progress { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin-bottom: 6px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .field .lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.input, textarea.input, select.input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 9px;
  padding: 9px 11px; outline: none; color: var(--text);
}
.input:focus { border-color: var(--accent); }
textarea.input { min-height: 110px; resize: vertical; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.toggle-group { display: flex; flex-wrap: wrap; gap: 6px; }
.toggle-group button {
  border: 1px solid var(--line-2); background: transparent; border-radius: 8px; height: 30px; padding: 0 10px;
  cursor: pointer; color: var(--muted); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.toggle-group button[aria-pressed="true"] {
  color: color-mix(in srgb, var(--c) 85%, white);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border-color: color-mix(in srgb, var(--c) 40%, transparent);
}
.toggle-group .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

/* ---------- Admin drawer ---------- */
.drawer[open] {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100vh; max-height: 100vh;
  width: min(560px, 100vw); background: var(--panel); border-left: 1px solid var(--line-2);
  display: flex; flex-direction: column; animation: slide .2s ease-out;
}
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.tabs button {
  background: none; border: none; padding: 12px 10px; cursor: pointer; color: var(--muted); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel { padding: 20px; overflow-y: auto; flex: 1; }
.tab-panel h3 { margin: 0 0 4px; font-size: 15px; }
.tab-panel .hint { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; }
.box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); }
.list-item:first-child { border-top: none; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .sub { color: var(--muted); font-size: 12px; }
.role-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; text-transform: capitalize; }
.role-badge.admin { background: rgba(180,140,255,0.15); color: #cdb4ff; }
.role-badge.editor { background: rgba(90,169,255,0.15); color: #9ccbff; }
.role-badge.owner { background: rgba(255,193,69,0.15); color: #ffd47a; }
.roles-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 10px; }
.roles-table th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--faint); padding: 0 4px 6px; }
.roles-table td { padding: 6px 4px; border-top: 1px solid var(--line); }
.roles-table td:last-child { text-align: right; color: var(--muted); }
.rank-map td:nth-child(2) { width: 46%; }
.rank-map .input { padding: 6px 9px; }
.drag-handle { cursor: grab; color: var(--faint); }
.audit-item { padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.audit-item:first-child { border-top: none; }
.audit-item .when { color: var(--faint); font-size: 12px; }
.err { color: var(--danger); font-size: 12.5px; min-height: 1em; margin-top: 6px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--panel-2); border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); pointer-events: none; transition: .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255,107,107,.4); }

/* White text needs a darker red than --danger: 5.4:1 (hover 4.7:1) */
.btn.danger-solid { background: #c2334a; color: #fff; border-color: transparent; }
.btn.danger-solid:hover { background: #d13d55; }

/* ---------- Views nav ---------- */
.views { display: flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-left: auto; }
.views a {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 9px; white-space: nowrap; flex: none;
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.views a:hover { color: var(--text); }
.views a[aria-current="page"] { background: var(--panel-2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.nav-count:not(:empty) { background: var(--sev-high); color: #1a0f05; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; min-width: 18px; text-align: center; }
.view { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ---------- Bug feed ---------- */
.feed { width: 100%; max-width: 900px; margin: 0 auto; padding: 18px 28px 40px; overflow-y: auto; }
#view-bugs { overflow-y: auto; }
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.feed-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.feed-head p { margin: 4px 0 0; color: var(--muted); max-width: 60ch; }
.feed-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.sum { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.sum b { display: block; font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sum span { color: var(--muted); font-size: 12.5px; }
.sum.attn { border-color: color-mix(in srgb, var(--b-reported) 50%, transparent); }
.sum.attn b { color: var(--b-reported); }
.feed-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.feed-tools .search { flex: 1; min-width: 180px; width: auto; }
select.sev-select { width: auto; flex: none; height: 36px; padding: 0 10px; }
.seg { display: flex; gap: 2px; padding: 3px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; }
.seg button { white-space: nowrap; flex: none; border: none; background: none; height: 28px; padding: 0 10px; border-radius: 7px; color: var(--muted); cursor: pointer; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.seg button span { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.seg button[aria-selected="true"] { background: var(--panel-2); color: var(--text); }
.seg button[aria-selected="true"] span { color: var(--muted); }

.bug-list { display: flex; flex-direction: column; gap: 8px; }
.bug {
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 0; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: background .15s, border-color .15s;
}
.bug:hover { background: var(--card-hover); border-color: var(--line-2); }
.bug .bug-main { align-self: stretch; display: flex; flex-direction: column; justify-content: center; border-radius: 8px; }
.bug .bug-main:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.sev-stripe { align-self: stretch; width: 4px; flex: none; margin: -12px 0; background: var(--sev); }
.bug-main { flex: 1; min-width: 0; }
.bug-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bug-title { font-weight: 550; font-size: 14.5px; margin: 6px 0 3px; }
.bug.closed .bug-title { color: var(--muted); }
.bug-meta { color: var(--faint); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bug-meta i { font-style: normal; opacity: .6; }
.mine { color: var(--accent-2); }
.sev {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.metoo {
  flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 52px; height: 48px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel);
  color: var(--muted); cursor: pointer; font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.metoo:hover { color: var(--text); border-color: var(--muted); }
.metoo[aria-pressed="true"] { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.empty-feed { text-align: center; color: var(--faint); padding: 40px 16px; border: 1px dashed var(--line-2); border-radius: 12px; }

/* ---------- Review queue ---------- */
#view-review { overflow-y: auto; }
.nav-count.attn:not(:empty) { background: var(--b-reported); color: #120d24; }
a.sum { color: inherit; text-decoration: none; }
a.sum:hover { border-color: var(--line-2); background: var(--panel-2); }
.queue-title { font-size: 15px; margin: 4px 0 4px; }
.queue-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ---------- Attachments ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.optional { font-weight: 400; color: var(--faint); }
.bug-meta .mini { display: inline-flex; align-items: center; gap: 3px; }
.dropzone {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px;
  border: 1.5px dashed var(--line-2); border-radius: 10px; background: var(--bg-2);
}
.dropzone.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg-2)); }
.dropzone:has(input:focus-visible) label { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.att-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.att-list li { display: flex; align-items: center; gap: 10px; }
.att-list img, .att-wait { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; background: var(--card); }
.att-wait { display: grid; place-items: center; font-size: 10.5px; color: var(--muted); }
.att-list .input { padding: 6px 9px; }
.att-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.att-gallery a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); }
.att-gallery img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.medal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); }
.medal iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }

/* ---------- Comments ---------- */
.comments { margin-top: 6px; }
.comments .section-label { display: flex; align-items: center; gap: 8px; }
.locked-tag { display: inline-flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; color: var(--sev-medium); font-weight: 600; }
.comment-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.comment { display: flex; gap: 10px; }
.comment .avatar { width: 32px; height: 32px; }
.comment.removed { color: var(--faint); font-style: italic; font-size: 13px; padding-left: 42px; }
.c-main { flex: 1; min-width: 0; }
.c-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 2px; }
.c-head .when { color: var(--faint); font-size: 12px; }
.c-actions { display: flex; gap: 12px; margin-top: 4px; }
.link-btn { background: none; border: none; padding: 0; cursor: pointer; color: var(--muted); font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--text); }
.comment-form textarea { min-height: 70px; }
.report-reasons { margin: 6px 0 0; padding-left: 18px; }
.modal-foot { flex-wrap: wrap; }

/* ---------- Suggestions ---------- */
#view-suggestions { overflow-y: auto; }
.sg {
  display: flex; align-items: stretch; gap: 12px; padding: 10px 12px 10px 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: background .15s, border-color .15s;
}
.sg:hover { background: var(--card-hover); border-color: var(--line-2); }
.sg .bug-main { cursor: pointer; align-self: center; border-radius: 8px; }
.sg .bug-main:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sg.closed .bug-title { color: var(--muted); }
.vote { flex: none; width: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.vote button {
  width: 32px; height: 26px; display: grid; place-items: center; border-radius: 7px; cursor: pointer;
  background: none; border: 1px solid transparent; color: var(--faint);
}
.vote button:hover { color: var(--text); background: var(--panel-2); }
.vote button[data-value="1"][aria-pressed="true"] { color: var(--sg-up); background: color-mix(in srgb, var(--sg-up) 14%, transparent); border-color: color-mix(in srgb, var(--sg-up) 40%, transparent); }
.vote button[data-value="-1"][aria-pressed="true"] { color: var(--sg-down); background: color-mix(in srgb, var(--sg-down) 14%, transparent); border-color: color-mix(in srgb, var(--sg-down) 40%, transparent); }
.vote b { font-size: 15px; font-variant-numeric: tabular-nums; }
.vote b.pos { color: var(--sg-up); }
.vote b.neg { color: var(--sg-down); }
.vote.closed b { color: var(--muted); }
.sg-detail { display: flex; gap: 14px; align-items: flex-start; }
.sg-detail .vote { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px 0; }

/* Roadmap ↔ suggestion links */
.card-meta .from-sg { color: var(--sg-up); }
.from-sg-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.from-sg-line svg { color: var(--sg-up); }

/* ---------- Updates (releases) ---------- */
#view-updates { overflow-y: auto; }
.release { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.release-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.release-head h3 { margin: 0; font-size: 16px; }
.release-head time { color: var(--muted); font-size: 13px; }
.ver { font-weight: 750; font-size: 15px; letter-spacing: .01em; color: color-mix(in srgb, var(--c) 85%, white); }
.stage { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border-radius: 5px;
  color: color-mix(in srgb, var(--c) 85%, white); background: color-mix(in srgb, var(--c) 15%, transparent); }
.release-notes { margin-top: 10px; }
.release h4.section-label { margin: 16px 0 6px; }
.release-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.release-items li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.release-items li:first-child { border-top: none; }
.ri-title { font-weight: 500; }

/* ---------- Classified items (Confidential / Secret / Top Secret) ---------- */
/* Badge text pairs are well above 4.5:1: #f2f2f2 on #000, #fff on #7a1222, #1a1200 on #f5c542. */
.cls-badge {
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px 0 6px; border-radius: 5px; flex: none;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.cls-badge.cls-confidential { background: #000; color: #f2f2f2; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.cls-badge.cls-secret { background: #7a1222; color: #fff; }
.cls-badge.cls-top_secret { background: #f5c542; color: #1a1200; }
.card .cls-badge { margin-bottom: 8px; }
.classified {
  --cls-edge: #000;
  border: 2px solid var(--cls-edge);
  background: repeating-linear-gradient(135deg, rgba(0,0,0,.28) 0 7px, transparent 7px 14px), var(--card);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), var(--shadow);
}
.classified.cls-secret { --cls-edge: #b3243a; }
.classified.cls-top_secret { --cls-edge: #f5c542; }
.classified:hover { border-color: var(--cls-edge); background: repeating-linear-gradient(135deg, rgba(0,0,0,.28) 0 7px, transparent 7px 14px), var(--card-hover); }
.stat-cls { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Checklists (several per card) ---------- */
/* position: relative keeps the screen-reader-only legend inside the box, so the dialog doesn't get a second scrollbar */
.checklist-box { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 0 0 10px; min-width: 0; }
a.btn { text-decoration: none; }
.checklist-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.checklist-head .input { flex: 1; min-width: 0; font-weight: 600; }

/* ---------- Suggestion Bank lane ---------- */
.column.bank { border-style: dashed; border-color: color-mix(in srgb, var(--sev-medium) 45%, transparent); }
.column.bank .col-title { display: inline-flex; align-items: center; gap: 6px; }
.column.bank .col-desc a { color: var(--accent-2); }
.bank-card .card-meta { justify-content: space-between; }

/* ---------- Admin page ---------- */
.admin-tabs { display: inline-flex; flex-wrap: wrap; margin-bottom: 14px; }
.admin-panel h3 { margin: 18px 0 4px; font-size: 15px; }
.admin-panel h3:first-child { margin-top: 0; }
.admin-panel .hint { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; }
.limits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.opt-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.opt-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.opt-row .field { margin: 0; flex: 1 1 150px; min-width: 0; }
.opt-row .check { padding: 0 0 8px; }
.opt-row.off .opt-preview { opacity: .55; }
.opt-preview { flex: 0 0 100%; }
.opt-used { padding-bottom: 10px; margin: 0 !important; }
.opt-actions { display: inline-flex; gap: 2px; margin-left: auto; padding-bottom: 4px; }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.ban-scopes { border: none; padding: 0; margin: 0 0 14px; }
.ban-scopes .check { padding: 4px 0; }

/* ---------- Permissions (Admin → Access) ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.perm-table { border-collapse: collapse; font-size: 12.5px; min-width: 760px; width: 100%; }
.perm-table th, .perm-table td { padding: 6px 8px; border-top: 1px solid var(--line); text-align: center; }
.perm-table thead th { border-top: none; vertical-align: bottom; }
.perm-table tbody th { text-align: left; font-weight: 500; color: var(--text); max-width: 260px; }
.perm-table input { width: 16px; height: 16px; accent-color: var(--accent); }
.perm-table input:disabled { opacity: .5; }
.po-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 14px; }
.po-grid label { font-weight: 500; }

/* ---------- Contact conversations ---------- */
.convo { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.convo-item { padding: 8px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.convo-item.from-team { background: color-mix(in srgb, var(--accent) 10%, var(--bg-2)); border-color: color-mix(in srgb, var(--accent) 30%, transparent); margin-left: 24px; }
.convo-item .msg-top { margin-bottom: 2px; }
.msg.unread { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.contact-note { margin: 0 28px 8px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.contact-note p { margin: 0; }
.contact-note a { color: var(--text); }
.privacy-panel { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--sev-medium) 50%, transparent); }
.pp-type { border: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pp-type legend { margin-bottom: 6px; }
.pp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-size: 13px; }
.pp-chip:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.pp-chip input { accent-color: var(--accent); }
.pp-steps { margin-top: 8px; font-size: 13.5px; }
.pp-steps p { margin: 0 0 8px; }
.pp-list { margin: 0 0 8px; padding-left: 18px; display: grid; gap: 4px; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pd-posts li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- Privacy request tools ---------- */
.privacy-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.tpl-select { width: auto; max-width: 100%; height: 30px; padding: 0 8px; font-size: 13px; }
.msg-log { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.msg-log summary { cursor: pointer; }
.msg-log ul { margin: 6px 0 0; padding-left: 18px; }
.your-data { margin-top: 16px; }

/* ---------- Ban notice ---------- */
.ban-note { margin: 0 28px 8px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--danger) 12%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }
.ban-note p { margin: 0; }
.ban-note p + p { margin-top: 6px; }
.ban-note a { color: var(--text); }

/* ---------- Footer ---------- */
.site-foot { padding: 14px 28px 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); text-decoration: underline; }
.site-foot p { margin: 0; }

/* ---------- Agreement dialog ---------- */
.rules-summary { margin: 0; padding: 12px 14px 12px 32px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--sev-medium) 12%, transparent); border: 1px solid color-mix(in srgb, var(--sev-medium) 35%, transparent); }

/* ---------- Contact ---------- */
#view-contact { overflow-y: auto; }
.sub-head { font-size: 15px; margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }
.rank-note { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--faint); }
.msg-list { display: flex; flex-direction: column; gap: 8px; }
.msg { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.msg.closed { opacity: .75; }
.msg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.msg-top .when { color: var(--faint); font-size: 12px; }
.msg-top .status { margin-left: auto; }
.msg-reply { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.msg-reply .lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }

/* ---------- Legal / info pages ---------- */
.doc { width: 100%; max-width: 760px; margin: 0 auto; padding: 8px 28px 48px; flex: 1; }
.doc h1 { font-size: 28px; letter-spacing: -0.015em; margin: 10px 0 4px; }
.doc .updated { color: var(--faint); margin: 0 0 24px; }
.doc h2 { font-size: 18px; margin: 32px 0 8px; }
.doc h3 { font-size: 15px; margin: 20px 0 6px; }
.doc p, .doc li { color: #cfd3dc; line-height: 1.65; }
.doc ul, .doc ol { padding-left: 22px; }
.doc .callout { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .topbar { padding: 16px 16px 4px; }
  .ban-note, .contact-note { margin: 0 16px 8px; }
  .brand p { display: none; }
  .toolbar { padding: 10px 16px 12px; }
  .search { width: 100%; }
  .stats { margin-left: 0; }
  .board { padding: 4px 16px 20px; }
  .column { flex-basis: 85vw; }
  .user-chip .who { display: none; }
  .brand h1 { font-size: 17px; }
  .logo { height: 40px; }
  #admin-btn .lbl { display: none; }
  #admin-btn { padding: 0 10px; }
  .btn.roblox { padding: 0 12px; }
  .row { flex-direction: column; gap: 0; }
  .topbar { flex-wrap: wrap; }
  .views { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
  .views a { flex: 1 0 auto; justify-content: center; padding: 0 12px; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .feed { padding: 12px 16px 32px; }
  .feed-head { flex-direction: column; align-items: stretch; }
  .feed-summary { grid-template-columns: repeat(2, 1fr); }
  .site-foot { padding: 14px 16px 18px; }
  .doc { padding: 8px 16px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
