:root {
  --gap: 0.6rem;
  --card-bg: #1b1b22;
  --card-border: #33333d;
  --text: #e8e8ec;
  --text-dim: #9a9aa5;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  max-width: 90rem;
  margin: 1.25rem auto;
  padding: 0 1rem;
  background: #0f0f13;
  color: var(--text);
}

.columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 48rem) {
  .columns {
    grid-template-columns: 1fr;
  }
}

.column {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.column-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 0;
  background: #0f0f13;
  padding-bottom: 0.5rem;
  z-index: 1;
}

.column-header h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.column-hint {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

.combobox {
  position: relative;
}

.combobox-input {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.4rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.95rem;
}

.combobox-suggestions {
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 0;
  right: 0;
  z-index: 5;
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.4rem;
  max-height: 14rem;
  overflow-y: auto;
}

.combobox-suggestions li {
  padding: 0.4rem 0.5rem;
  border-radius: 0.3rem;
  cursor: pointer;
}

.combobox-suggestions li:hover {
  background: #2a2a33;
}

.type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.type-filter {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  cursor: pointer;
}

.type-filter-swatch {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  display: inline-block;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pgcr-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 0.3rem solid;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pgcr-row--dim {
  opacity: 0.35;
}

.pgcr-row--selected {
  background: #22222b;
  border-color: var(--text-dim);
}

.pgcr-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pgcr-row-name {
  font-weight: 600;
}

.pgcr-row-badges {
  display: flex;
  gap: 0.3rem;
}

.pgcr-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
  background: #2a2a33;
  color: var(--text-dim);
}

.pgcr-badge-complete {
  background: #1f2e22;
  color: #7fd18f;
}

.pgcr-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.pgcr-row-report {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-dim);
}

.pgcr-row-report:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.fireteam-panel {
  position: fixed;
  z-index: 20;
  width: 16rem;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  box-shadow: 0 0.6rem 1.75rem rgba(0, 0, 0, 0.45);
}

.fireteam-panel[hidden] {
  display: none;
}

.fireteam-panel-title {
  font-weight: 600;
}

.fireteam-roster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.fireteam-member {
  padding: 0.35rem 0.55rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.35rem;
  font-size: 0.9rem;
}

.fireteam-member-self {
  border-color: var(--text-dim);
  font-weight: 600;
}

.empty-state {
  color: var(--text-dim);
  font-style: italic;
}

.load-sentinel {
  height: 1px;
}

.compare-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.4rem;
  font-size: 0.9rem;
  width: fit-content;
}

.compare-chip-clear {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.compare-chip-clear:hover {
  color: var(--text);
}
