.tm-bar {
  position: relative;
  z-index: 20;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 20px;
  background: #FFFFFF;
  border-bottom: 1px solid #e8e8ed;
  color: #0a0a0f;
  font-family: "Inter", "Inter Greek", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

.tm-bar *,
.tm-bar *::before,
.tm-bar *::after {
  box-sizing: border-box;
}

.tm-brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.tm-brand svg {
  display: block;
  flex: none;
  color: #0a0a0f;
}

.tm-name {
  flex: none;
}

.tm-crumb {
  flex: none;
  padding-left: 10px;
  border-left: 1px solid #e8e8ed;
  color: #6b7280;
  font-weight: 500;
}

.tm-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 2px;
  border: 1px solid #e8e8ed;
  border-radius: 8px;
  background: #F4F4F2;
}

.tm-nav a {
  display: block;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
  color: #6b7280;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
}

.tm-nav a:hover {
  color: #0a0a0f;
}

.tm-nav a[aria-current="page"] {
  color: #0a0a0f;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px #e8e8ed;
}

.tm-nav a:focus-visible,
.tm-status a:focus-visible {
  outline: 2px solid #1D4AFF;
  outline-offset: 2px;
}

.tm-status {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.tm-state {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #6b7280;
  border: 1px solid #e8e8ed;
  border-radius: 8px;
  padding: 4px 8px;
  background: #FFFFFF;
}

.tm-state b {
  flex: none;
  font-family: "JetBrains Mono", "Inter Greek", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0f;
}

.tm-state[hidden] {
  display: none;
}

@media (max-width: 1180px) {
  .tm-more {
    display: none;
  }
}

@media (max-width: 720px) {
  .tm-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 12px;
  }
  .tm-status {
    order: 1;
    justify-self: start;
  }
  .tm-nav {
    order: 2;
    justify-self: end;
  }
  .tm-crumb {
    display: none;
  }
  .tm-nav a {
    padding: 4px 8px;
  }
}

@media (max-width: 400px) {
  .tm-name,
  .tm-wide {
    display: none;
  }
  .tm-bar {
    gap: 6px;
  }
  .tm-nav a {
    padding: 4px 7px;
  }
}
