/* One space entry, two peer views. Both views share the same tab geometry,
   including the narrow conversation column in the desktop shell. */
.space-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: none;
  gap: 4px;
  width: calc(100% - 40px);
  max-width: 680px;
  min-width: 0;
  margin: 4px auto 8px;
  padding: 4px;
  border: 0;
  border-radius: 18px;
  background: var(--brand-surface, #f4f6f3);
}
.space-navigation > button,
#journeyPanel .space-navigation > button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--brand-muted-on-surface, #626c5c);
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
.space-navigation > button[aria-selected="true"],
#journeyPanel .space-navigation > button[aria-selected="true"] {
  background: var(--brand-green, #d5fa44);
  color: var(--brand-ink, #20251f);
  font-weight: 600;
}
.space-navigation > button:focus-visible,
#journeyPanel .space-navigation > button:focus-visible {
  outline: 2px solid var(--brand-ink, #20251f);
  outline-offset: 2px;
}
.sidebar .space-navigation { margin-bottom: 8px; }
.space-records-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; }

@media (hover: hover) {
  .space-navigation > button:not([aria-selected="true"]):hover,
  #journeyPanel .space-navigation > button:not([aria-selected="true"]):hover {
    background: #e9eee5;
    color: var(--brand-ink, #20251f);
  }
}
@media (min-width: 681px) {
  .sidebar .space-navigation > button { font-size: 13px; padding-inline: 4px; }
}
@media (max-width: 359px) {
  #journeyPanel .space-navigation { width: calc(100% - 32px); }
}
@media (max-height: 460px) {
  .space-navigation { margin-block: 0 4px; }
}
