/* Tracker-specific components, built on the Galaxy Panel design tokens from style.css */
.sub-list { display: flex; flex-direction: column; gap: 0.7em; }
.sub-item {
  display: flex; gap: 1em; align-items: center;
  background: linear-gradient(180deg, var(--surface), var(--bg-elevated));
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 1em 1.3em; color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.sub-item:hover { border-color: var(--border); box-shadow: 0 16px 40px -22px rgba(61, 107, 250, 0.45); color: var(--text); transform: translateY(-1px); }
.sub-score { min-width: 54px; text-align: center; font: 700 1.3rem var(--font-display); }
.sub-score small { display: block; font: 600 0.66rem var(--font-body); color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.sub-body { flex: 1; min-width: 0; }
.sub-title { font: 600 1.02rem var(--font-body); margin-bottom: 0.4em; overflow-wrap: anywhere; }
.sub-meta { display: flex; flex-wrap: wrap; gap: 0.5em 1em; align-items: center; color: var(--text-dim); font-size: 0.82rem; }
.sub-meta i { color: var(--text-faint); margin-right: 0.25em; }

.filters { display: flex; gap: 0.7em; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1.2em; }
.filters .field { margin: 0; min-width: 170px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em; align-items: start; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: 0.9em; }
.section-title h2 { margin: 0; font-size: 1.15rem; }
.actions { display: flex; gap: 0.5em; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

.sub-content { line-height: 1.7; overflow-wrap: anywhere; }
.sub-content a, .comment-text a { color: var(--blue-bright); text-decoration: underline; }
.images { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.1em; }
.images img { max-width: 240px; max-height: 180px; border-radius: var(--radius-sm); border: 1px solid var(--border); object-fit: cover; }
.vote-box { display: flex; align-items: center; gap: 0.6em; margin-top: 1.3em; }
.vote-btn { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); border-radius: var(--radius-sm); padding: 0.5em 1em; cursor: pointer; font: 600 0.88rem var(--font-body); transition: border-color 0.15s ease, color 0.15s ease; }
.vote-btn:hover { border-color: var(--blue-bright); color: var(--text); }
.vote-btn.on-up { border-color: rgba(52, 211, 153, 0.5); color: var(--green); background: rgba(52, 211, 153, 0.12); }
.vote-btn.on-down { border-color: rgba(251, 80, 121, 0.5); color: var(--red); background: rgba(251, 80, 121, 0.12); }
.comment { display: flex; gap: 0.9em; padding: 1em 0; border-top: 1px solid var(--border-soft); }
.comment:first-of-type { border-top: 0; }
.comment .avatar { flex: none; }
.comment-body { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.55; }
.comment-head { display: flex; gap: 0.6em; align-items: center; margin-bottom: 0.25em; font-size: 0.84rem; }
.comment-head strong { color: var(--text); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

details.cat { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); margin-bottom: 0.6em; background: var(--bg-elevated); }
details.cat summary { cursor: pointer; padding: 0.75em 1em; display: flex; justify-content: space-between; gap: 1em; align-items: center; }
details.cat .cat-form { padding: 0 1em 1em; }
.role-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.4em 1em; max-height: 190px; overflow-y: auto; padding: 0.6em 0.8em; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.role-list label { display: flex; align-items: center; gap: 0.5em; margin: 0; font-weight: 500; color: var(--text); }
.tr-section { margin-bottom: 2em; scroll-margin-top: 20px; }
.tr-section > h2 { font-size: 1.2rem; margin-bottom: 0.8em; }

@media (max-width: 860px) {
  .main { padding-top: 4.6em; }
  .two-col { grid-template-columns: 1fr; }
}
