.start-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  isolation: isolate;
  background: color-mix(in srgb, var(--os-ground-absorptive) 92%, var(--os-ink));
  color: var(--os-ground);
  border-bottom: 1px solid color-mix(in srgb, var(--os-blue) 28%, transparent);
  box-shadow:
    inset 0 -1px 0 color-mix(in srgb, var(--os-blue) 18%, transparent),
    0 12px 28px color-mix(in srgb, var(--os-ink) 42%, transparent);
}

.start-bar-inner {
  display: grid;
  gap: calc(var(--os-space-unit) * 2);
  max-width: 72rem;
  margin: 0 auto;
  padding: calc(var(--os-space-unit) * 2) calc(var(--os-space-unit) * 4)
    calc(var(--os-space-unit) * 2);
}

.start-bar-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: calc(var(--os-space-unit) * 2);
  min-height: calc(var(--os-space-unit) * 11);
  padding: calc(var(--os-space-unit) * 1) calc(var(--os-space-unit) * 2);
  border: 1px solid color-mix(in srgb, var(--os-blue) 38%, var(--os-rule));
  border-radius: var(--os-radius-md);
  background: color-mix(in srgb, var(--os-ground-void) 88%, var(--os-blue));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--os-blue) 12%, transparent);
}

.start-bar-caret {
  font-family: var(--os-font-mono);
  font-size: var(--os-type-meta-size, 13px);
  color: var(--os-caret-color);
  line-height: 1;
  user-select: none;
}

.start-bar-field {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  caret-color: var(--os-caret-color);
  font-family: var(--os-font-mono);
  font-size: 14px;
  line-height: 1.4;
  outline: none;
}

.start-bar-field::placeholder {
  color: color-mix(in srgb, var(--os-ground) 46%, transparent);
}

.start-bar-go {
  appearance: none;
  border: 0;
  border-radius: var(--os-radius-sm);
  padding: calc(var(--os-space-unit) * 1.5) calc(var(--os-space-unit) * 3);
  background: var(--os-blue);
  color: var(--os-ground);
  font-family: var(--os-font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.start-bar-go:hover,
.start-bar-go:focus-visible {
  background: var(--os-blue-pressed);
}

.start-bar-starts {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--os-space-unit) * 1);
}

.start-bar-chip {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--os-blue) 28%, transparent);
  border-radius: var(--os-radius-pill);
  padding: 4px 11px;
  background: transparent;
  color: color-mix(in srgb, var(--os-ground) 82%, transparent);
  font-family: var(--os-font-body);
  font-size: 12px;
  cursor: pointer;
}

.start-bar-chip:hover,
.start-bar-chip[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--os-blue) 62%, transparent);
  background: color-mix(in srgb, var(--os-blue) 18%, transparent);
  color: var(--os-ground);
}

.start-bar-panel {
  display: grid;
  gap: calc(var(--os-space-unit) * 2);
  padding-bottom: calc(var(--os-space-unit) * 1);
}

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

.start-bar-law,
.start-bar-beat {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--os-ground) 78%, transparent);
}

.start-bar-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--os-space-unit) * 2);
}

.start-bar-map section {
  min-width: 0;
}

.start-bar-map h2,
.start-bar-must h2 {
  margin: 0 0 6px;
  font-family: var(--os-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--os-caret-color);
}

.start-bar-map p,
.start-bar-must p {
  margin: 0;
  font-size: 13px;
}

.start-bar-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--os-space-unit) * 1);
}

.start-bar-token {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--os-radius-sm);
  background: color-mix(in srgb, var(--os-blue) 14%, transparent);
  font-family: var(--os-font-mono);
  font-size: 12px;
}

.start-bar-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.start-bar-swatches i {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--os-ground) 22%, transparent);
}

.start-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--os-space-unit) * 2);
  align-items: center;
}

.start-bar-actions a {
  color: var(--os-caret-color);
  font-size: 13px;
}

@media (max-width: 720px) {
  .start-bar-row {
    grid-template-columns: auto 1fr;
  }

  .start-bar-go {
    grid-column: 1 / -1;
  }

  .start-bar-map {
    grid-template-columns: 1fr;
  }
}
