/* Quest Log: two side-by-side lists (quest lines, then the selected line's missions) above a
   description box -- wider than the other Hub windows (guild-modal/house-info-modal at 340px)
   since two columns need the room. */
#quest-log-modal {
  width: 480px;
}

.quest-log-panes {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.quest-log-pane {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.quest-log-pane-label {
  color: #999;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quest-log-list {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 2px;
}

.quest-log-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  font-size: 11px;
  color: #ccc;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quest-log-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.quest-log-row-selected {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff;
}

.quest-log-row-locked {
  color: #777;
}

.quest-log-empty {
  color: #888;
  font-style: italic;
  padding: 6px;
}

.quest-log-check {
  flex: 0 0 auto;
  width: 11px;
  color: #4caf50;
  font-weight: bold;
}

.quest-log-search {
  width: 100%;
  box-sizing: border-box;
  color: white;
  border: 1px solid black;
  margin-bottom: 6px;
}

.quest-log-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.quest-log-show-completed {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #999;
  font-size: 10px;
  cursor: pointer;
}

.quest-log-show-completed input {
  margin: 0;
}

.quest-log-show-completed:has(input:disabled) {
  opacity: 0.5;
  cursor: default;
}

.quest-log-description {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  padding: 6px 8px;
  min-height: 40px;
  color: #ddd;
  font-size: 11px;
  line-height: 1.4;
}

.quest-log-summary {
  color: #999;
  font-size: 10px;
  margin-top: 6px;
}
